Configure logging by going to System Console > Environment > Logging, or by editing the config.json
file as described in the following tables. Changes to configuration settings in this section require a server restart before taking effect.
Output logs to console
Available in legacy Enterprise Edition E10/E20
Configure Mattermost to output logs to the console.
|
|
Console log level
Available in legacy Enterprise Edition E10/E20
The level of detail in log events written when Mattermost outputs log messages to the console.
|
|
Output console logs as JSON
Available in legacy Enterprise Edition E10/E20
Configure Mattermost to output console logs as JSON.
|
|
Output logs to file
Available in legacy Enterprise Edition E10/E20
Configure Mattermost to output console logs to a file.
|
|
File log level
Available in legacy Enterprise Edition E10/E20
The level of detail in log events when Mattermost outputs log messages to a file.
|
|
Output file logs as JSON
Available in legacy Enterprise Edition E10/E20
Configure Mattermost to output file logs as JSON.
|
|
File log directory
Available in legacy Enterprise Edition E10/E20
The location of the log files. String input. If left blank, log files are
stored in the |
|
Note: The path you configure must exist, and Mattermost must have write permissions for this directory. |
Enable webhook debugging
Available in legacy Enterprise Edition E10/E20
Configure Mattermost to capture the contents of incoming webhooks to log files for debugging.
|
|
Enable diagnostics and error reporting
Available in legacy Enterprise Edition E10/E20
Configure Mattermost to allow any combination of console, local file, syslog, and TCP socket targets, and send log records to multiple targets. |
|
Output logs to multiple targets
Available in legacy Enterprise Edition E10/E20
Configure Mattermost to allow any combination of console, local file, syslog, and TCP socket targets, and send log records to multiple targets. String input can contain a filespec to another configuration file, a database DSN, or JSON. |
|
Notes:
|
|
See the audit log v2 documentation for additional information. |
Teammate name display
Note
Available only on Enterprise plans
Available in legacy Enterprise Edition E20
This setting isn’t available in the System Console and can only be set in config.json
.
Control Teammate Name Display at the system level.
True: Allows System Admins to control Teammate Name Display at the system level.
False: System Admins cannot control Teammate Name Display at the system level.
This feature’s |
Colorize plain text console logs
This setting isn’t available in the System Console and can only be set in config.json
.
True: When logged events are output to the console as plain text, colorize log levels details.
False: Plain text log details aren’t colorized in the console.
This feature’s |