Logging is configured in the logging section of the AppDynamics configuration file. See Python Agent Settings.
Set the logging level for the amount of detail that you want to see: INFO, WARNING and DEBUG. The default is level is WARNING.
For maximum debugging information, set the logging level to DEBUG. Debug-level logs show the information that the Python Agent is sending to the proxy, which can be useful for debugging the agent.
For quick debugging, set the debugging configuration option to on. This causes debug-level logs to be written to both stderr and log files.
This is the behavior you can expect with various combinations of logging level and debug settings:
The various combinations of logging level and debug settings produce behavior as follows:
- level=info, debugging=off: Info-level logs are written to the log file
- level=warning, debugging=off: Warning-level logs are written to the log file
- level=debug, debugging=off: Debug-level logs are written to the log file
- level=info, debugging=on: Debug-level logs are written to the log file and to stderr
- level=warning, debugging=on: Debug-level logs are written to the log file and to stderr
- level=debug, debugging=on: Debug-level logs are written to the log file and to stderr.
Location and Names of Agent Log Files
Agent logs are written in the directory specified by the dir (APPD_LOGS_DIR) directive in the logging section of the configuration file.
For each node, the log is output to a file named APP_NAME-<NODE_NAME>.log. These files live in the log dir directory (APPD_LOGS_DIR).
The agent creates and rotates a maximum of five log files. Maximum log size is 20MB, which gives you a maximum of the most recent 100MB of log data at one time.
Location of Proxy Logs
The proxy logs are always written to dir (APPD_LOGS_DIR), which defaults to /tmp/appd/logs (APPD_DIR/logs).