mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-07 00:57:00 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
88
roles/openxpki/templates/log.conf.j2
Normal file
88
roles/openxpki/templates/log.conf.j2
Normal file
@@ -0,0 +1,88 @@
|
||||
|
||||
## This is Log::Log4perl configuration.
|
||||
##
|
||||
## Please be careful if you change this and
|
||||
## please always test all changes.
|
||||
|
||||
## The example configuration configures the log for all
|
||||
## loggers/facilities.
|
||||
|
||||
# Catch-all root logger
|
||||
log4perl.rootLogger = ERROR, CatchAll
|
||||
|
||||
# The workflow base logger -
|
||||
log4perl.logger.Workflow = ERROR, Journal
|
||||
|
||||
## FACILITY: AUTH
|
||||
# Anything related to logging into the system
|
||||
log4perl.category.openxpki.auth = INFO, Journal
|
||||
|
||||
## FACILITY: AUDIT
|
||||
# mainly usage and access of private key material or secrets
|
||||
log4perl.category.openxpki.audit = INFO, AuditDBI, AuditFile
|
||||
|
||||
## FACILITY: SYSTEM
|
||||
# internal system management like forking/ending process and usage of
|
||||
# system components such as notification or crypto backend
|
||||
# NEVER use the OpenXPKI::DBI logger as target for system, see #223
|
||||
log4perl.category.openxpki.system = WARN, Journal
|
||||
|
||||
## FACILITY: WORKFLOW
|
||||
# INTERNAL logger for the workflow engine, conditions evaluated, actions taken
|
||||
# This must not be used by implementors, log your stuff to APPLICATION!
|
||||
log4perl.category.openxpki.workflow = WARN, Journal
|
||||
|
||||
## FACILITY: APPLICATION
|
||||
# info about the workflows, conditions evaluated, actions taken
|
||||
log4perl.category.openxpki.application = INFO, ApplicationFile, ApplicationDBI
|
||||
|
||||
## FACILITY: DEPRECATED
|
||||
# receives messages when deprecated code is called
|
||||
# Errors and warnings should be handled immediatly,
|
||||
# lower levels are mainly for development and debugging
|
||||
log4perl.category.openxpki.deprecated = WARN, Deprecated
|
||||
|
||||
## FACILITY: Connector (outside OXI!)
|
||||
# internal logging of the config layer, errors indicate missconfiguration
|
||||
log4perl.category.connector = ERROR, Journal
|
||||
|
||||
## Appenders are the modules which do the real work. Different
|
||||
## facilities/loggers can use the same appenders.
|
||||
|
||||
log4perl.filter.FilterIsWorkflow = Log::Log4perl::Filter::MDC
|
||||
log4perl.filter.FilterIsWorkflow.KeyToMatch = wfid
|
||||
log4perl.filter.FilterIsWorkflow.RegexToMatch = \d+
|
||||
|
||||
log4perl.appender.Journal = Log::Log4perl::Appender::Screen
|
||||
log4perl.appender.Journal.layout = Log::Log4perl::Layout::SimpleLayout
|
||||
log4perl.appender.Journal.utf8 = 1
|
||||
|
||||
log4perl.appender.CatchAll = Log::Log4perl::Appender::Screen
|
||||
log4perl.appender.CatchAll.layout = Log::Log4perl::Layout::SimpleLayout
|
||||
log4perl.appender.CatchAll.utf8 = 1
|
||||
|
||||
log4perl.appender.ApplicationDBI = OpenXPKI::Server::Log::Appender::Database
|
||||
log4perl.appender.ApplicationDBI.Filter = FilterIsWorkflow
|
||||
log4perl.appender.ApplicationDBI.layout = Log::Log4perl::Layout::PatternLayout
|
||||
log4perl.appender.ApplicationDBI.layout.ConversionPattern = %m (%X{user})
|
||||
log4perl.appender.ApplicationDBI.table = application_log
|
||||
log4perl.appender.ApplicationDBI.microseconds = 1
|
||||
|
||||
log4perl.appender.ApplicationFile = Log::Log4perl::Appender::Screen
|
||||
log4perl.appender.ApplicationFile.Filter = FilterIsWorkflow
|
||||
log4perl.appender.ApplicationFile.layout = Log::Log4perl::Layout::PatternLayout
|
||||
log4perl.appender.ApplicationFile.layout.ConversionPattern = %X{wfid} %m %n
|
||||
log4perl.appender.ApplicationFile.utf8 = 1
|
||||
|
||||
log4perl.appender.AuditDBI = OpenXPKI::Server::Log::Appender::Audit
|
||||
log4perl.appender.AuditDBI.layout = OpenXPKI::Server::Log::Layout::Audit
|
||||
log4perl.appender.AuditDBI.warp_message = 0
|
||||
|
||||
log4perl.appender.AuditFile = Log::Log4perl::Appender::Screen
|
||||
log4perl.appender.AuditFile.layout = OpenXPKI::Server::Log::Layout::Audit
|
||||
log4perl.appender.AuditFile.layout.ConversionPattern = %c.%p %m [pid=%P|%i]%n
|
||||
log4perl.appender.AuditFile.utf8 = 1
|
||||
|
||||
log4perl.appender.Deprecated = Log::Log4perl::Appender::Screen
|
||||
log4perl.appender.Deprecated.layout = Log::Log4perl::Layout::SimpleLayout
|
||||
|
Reference in New Issue
Block a user