Logging
Log levels, files, syslog and console colours
| Variable | Choices/Defaults | Comments |
|---|---|---|
| LOG_LEVEL string | Choices:
| Log level
Ansible Forms logs to logfile called Ansible Forms.log. |
| LOG_PATH string | Default: %PERSISTENT_FOLDER%/logs | Path for logfiles
Ansible Forms maintains 2 logfiles. Added 4.0.0
Make the logfiles rotating with daily timestamp. 30days of logs are kept. |
| LOG_CONSOLE_LEVEL string | Choices:
| Console log level
When you run ansibleforms, by default the application also logs to the console. |
| LOG_TZ string added in version 5.0.10 | Default: UTC | Log timezone
Sets the timezone for log timestamps. Use a valid IANA timezone string (e.g., UTC, Europe/Amsterdam, America/New_York). Also used for the job timestamps. |
| LOG_SYSLOG_HOST string added in version 3.0.1 | Default: | Syslog host
Setting the syslog host enables the logging to a syslog server. Without it, nothing is sent to syslog. |
| LOG_SYSLOG_LEVEL string added in version 3.0.1 | Choices:
| Syslog level
The logging level for the syslog server |
| LOG_SYSLOG_PORT number added in version 3.0.1 | Default: 514 | Syslog port
The port on which the syslog server is listening |
| LOG_SYSLOG_PROTOCOL string added in version 3.0.1 | Choices:
| Syslog protocol
The syslog protocol to use |
| LOG_SYSLOG_PATH string added in version 3.0.1 | Default: /dev/log | Syslog path
The path to the syslog dgram socket (i.e. |
| LOG_SYSLOG_SOURCE string added in version 3.0.1 | Default: localhost | Source hostname
Host to indicate where log messages are coming from |
| LOG_SYSLOG_TYPE string added in version 3.0.1 | Choices:
| Syslog protocol type
The type of the syslog protocol to use |
| LOG_SYSLOG_APPNAME string added in version 3.0.1 | Default: AnsibleForms | App name
The name of the application |
| LOG_COLOR_ERROR string added in version 3.0.1 | Default: \x1b[31m | Error color code
The escape color code for error (default red) |
| LOG_COLOR_WARN string added in version 3.0.1 | Default: \x1b[33m | Warning color code
The escape color code for warning (default yellow) |
| LOG_COLOR_NOTICE string added in version 3.0.1 | Default: \x1b[37m | Notice color code
The escape color code for notice (default white) |
| LOG_COLOR_INFO string added in version 3.0.1 | Default: \x1b[32m | Info color code
The escape color code for info (default green) |
| LOG_COLOR_DEBUG string added in version 3.0.1 | Default: \x1b[36m | Debug color code
The escape color code for debug (default cyan) |