Gå till innehållet

main/config/logging.properties

Parameter Required Default Options Description
logger.level Optional INFO EMERGENCY, ALERT, CRITICAL, ERROR, WARNING, NOTICE, INFO, DEBUG Root log level
logger.handlers Optional CONSOLE,FILE — Active handlers
handler.CONSOLE.level Optional WARN EMERGENCY, ALERT, CRITICAL, ERROR, WARNING, NOTICE, INFO, DEBUG Console handler log level
handler.FILE.level Optional INFO EMERGENCY, ALERT, CRITICAL, ERROR, WARNING, NOTICE, INFO, DEBUG File handler log level
handler.FILE.fileName Optional /logs/OrganizationServer.log — Log file path
handler.FILE.rotateSize Optional 100000000 — Max log file size in bytes before rotation
handler.FILE.maxBackupIndex Optional 40 — Number of rotated log files to keep
handler.FILE.suffix Optional .zip — Compressed archive suffix for rotated files
handler.FILE.rotateOnBoot Optional True — Rotate log file on application startup
formatter.PATTERN.pattern Optional %d{yyMMddHHmmss.SSS} [%t] %-5p %c{1} - %m%n — Log line format pattern
Required is mandatory. Optional is not required. Enabled is required only if the related feature is enabled.

Note

logger.level is a ceiling for both handlers — both it and handler.FILE.level (or handler.CONSOLE.level) must be increased to see DEBUG output. Example: with logger.level: WARN, raising handler.FILE.level to DEBUG still only yields WARN-level file output, since the root logger already filtered it out.