# MX\_LOGDIR
> [HTML Version](mx_logdir.htm)
_Written September 2025_
**xcall MIAMEX, MX\_LOGDIR, opcode, dirspec**
MX\_logdir (207) provides a means to relocate the ashlog.log file directory.
**Parameters**
_opcode_ ([Num](num.htm.md)) \[in\]
0 for get, 1 for set
_dirspec_ ([String](string.htm.md)) \[in/out\]
ashlog.log location
Although it is probably uncommon to change the ashlog location during a session, it comes in handy during debugging on a system with many users, in conjunction with verbose traces like XCALL and FUNCS. Rather than fill the common ashlog.log file with your traces, you can relocate the ashlog location for just your session to a local directory (or '.' for your current directory). You can then use VIEWASHLOG/LOCAL to view the traces in your local copy of the ashlog.
The ashlog.log file directory can also be changed via the [LOGDIR](logdir_sp.htm.md)[SP](keyword-types.htm.md) directive and the system command [SET LOGDIR](set_lit.htm.md#setlogdir).
**History**
2025 August, A-Shell 7.0.1778: MX\_logdir and [SET LOGDIR](set_lit.htm.md#setlogdir) added to A-Shell.