App Gateway provides log files to help you monitor App Gateway's behavior. Learn how to configure and access these log files.
Configure App Gateway Logs
Logs are enabled by default. To disable logs or change the log levels of the App Gateway server, sign in to the server, edit the /usr/local/nginx/conf/cloudgate.config file, and then under the general section, change the value of the logLevel attribute, and then save the file.
Values for the logLevel
attribute are: off | crit | security | config | fail | warn | info | trace1 | trace2
| trace3.
By Default, the log files are in the /usr/local/nginx/logs folder. If you want to change the default log folder, then update the value of the logFolder attribute under the general section of the /usr/local/nginx/conf/cloudgate.config file.
To change the log level for the agent service of the App Gateway, modify the
/usr/local/nginx/conf/cloudgate.config file, and set the
logLevel and logFolder attributes under the
agentConfig section as follows:
For example, to change the log level to trace3 and the log folder to
/tmp, update the /usr/local/nginx/conf/cloudgate.config
file with the following values, and then save the
file.