Logging
Older Capture Edge versions read only Debug mode and Log to file, which are derived from this page every time the configuration is saved. See Older Capture Edge versions.
The Logging page sets how the gateway logs. It applies to every service on the gateway: CloudManager, Collector, Syncer and Analytics.
Each setting on this page can also be set on the gateway itself with an environment variable. The environment variable wins over this configuration on that gateway. The link under the title, Logging environment variables, opens Logging, which lists the variables and where logs end up.
Leave a field empty to use the default. The gateway applies changes when its services restart.
Console
Minimum level
The lowest level written to the console (stdout/stderr).
- Platform default:
Informationon Linux and Docker, errors only on a Windows service. - Or a level:
Verbose,Debug,Information,Warning,ErrororFatal. A level also logs every level after it.
Environment variable: CAPTURE_LOG_CONSOLE_LEVEL.
File
Enabled
Whether the services write log files. On by default.
With file logging off, no log file is written on the gateway. Crashes leave no trace there, and diagnostics
packages and the Logs page in CloudManager have no history. To keep only crashes, leave file logging on and set
its Minimum level to Fatal.
The page shows the same warning when you turn it off, and hides the other file settings.
Environment variable: CAPTURE_LOG_FILE_ENABLED.
Minimum level
The lowest level written to the log files. Default: Information.
Environment variable: CAPTURE_LOG_FILE_LEVEL.
Max file size
The size limit of each daily log file, in MB. Default: 100 MB. Once a daily file is full, nothing more is written to it until the next day's file. See File size limit.
Environment variable: CAPTURE_LOGS_MAX_SIZE, in bytes.
Retained files
How many daily log files are kept. Default: 14.
Environment variable: CAPTURE_LOG_FILE_COUNT_LIMIT.
Separate error log
Also write errors and fatal errors to an error log of their own, which keeps a longer error trace. On by default. See Daily log files.
Environment variable: CAPTURE_SEPARATE_ERROR_LOG.
Retained error files
How many daily error log files are kept, when the error log is separate. Default: 30.
Environment variable: CAPTURE_LOG_ERROR_FILE_COUNT_LIMIT.
For a temporary look at more detail, pick a level in the live log instead of changing this page: in the Capture portal under Messages, or on the CloudManager Logs page. That level applies to one service, only while the page is open, and needs no restart. See Logging.