You can configure your own log messages to be viewed and managed alongside Gateway's standard Messages and Access log fies.
To open the View Logs window, in Gateway, click
System in the page header, then click View logs.
To add your own logging to be viewed alongside Messages and Access logs, you must add the
new log files to your config.json
file (located in your host's mapped
workspace folder). Add a new section named "custom_logs", with a user-facing
title and file name for each log file as follows:
In config.json:
{
"custom_logs": {
"<Custom log file name>" : "<filename>.log",
}
}
For example:
{
"custom_logs": {
"Custom1 Log" : "custom1.log",
"Custom2 Log" : "custom2.log"
}
}
In the View Logs window, custom logs will appear as tabs with the
specified <Custom log file name>
. That tab will include
entries from all *.log
files that begin with
<filename>
, including both single log files (with a
name of <filename>.log
) and log files with timestamps (such
as <filename>_2024-05-14_19-28-34.log
).
Log files for custom logs will appear in your host's mapped logs folder with standard Access and Messages logs:
logs
access_2024-05-14_19-32-39.log
messages_2024-05-14_19-32-36.log
custom1.log
custom2_2024-05-14_19-28-34.log