log-root
Path to folder containing log files
Syntax
--log-root
path
Description
--log-root
specifies the location of the
folder where a MATLAB®
Production Server™ instance writes log files. This property is available only for an on-premises
server installation.path
The server creates the following log files when it starts.
main.log
— Most recent log file.main.out
— Captures standard output from the main process.main.err
— Captures standard error output from the main process.main__
DATE
__
SERIAL
.log
— Main process log. When a server instance restarts or the size ofmain.log
reaches the limit set by thelog-rotation-size
property, the server renamesmain.log
tomain__
DATE
__
SERIAL
.log
and archives it in the folder set by thelog-archive-root
property. The default archive location is theold_logs
folder of a server instance.
Note
Omitting this property disables all logging.
Parameters
path
Path to the folder containing log files for a server instance.
Examples
For on-premises server instances created using the command line, update this server configuration property in the
main_config
server configuration file.For on-premises server instances created using the dashboard and for server deployments in the cloud, use the dashboard and cloud dashboard, respectively, to update the server configuration property.
Configure Using Command Line
log
Folder of Server
InstanceIn the main_config
file, set the
log-root
property to the following:
--log-root ./log