35 lines
804 B
YAML
35 lines
804 B
YAML
version: 1
|
|
formatters:
|
|
detail:
|
|
class: privacyidea.lib.log.SecureFormatter
|
|
format: '[%(asctime)s][%(process)d][%(thread)d][%(levelname)s][%(name)s:%(lineno)d] %(message)s'
|
|
|
|
handlers:
|
|
# mail:
|
|
# class: logging.handlers.SMTPHandler
|
|
# mailhost: mail.example.com
|
|
# fromaddr: privacyidea@example.com
|
|
# toaddrs:
|
|
# - admin1@example.com
|
|
# - admin2@example.com
|
|
# subject: PI Error
|
|
# formatter: detail
|
|
# level: ERROR
|
|
file:
|
|
# Rollover the logfile at midnight
|
|
class: logging.handlers.RotatingFileHandler
|
|
backupCount: 5
|
|
maxBytes: 1000000
|
|
formatter: detail
|
|
level: INFO
|
|
filename: /var/log/privacyidea/privacyidea.log
|
|
loggers:
|
|
# The logger name is the qualname
|
|
privacyidea:
|
|
handlers:
|
|
- file
|
|
# - mail
|
|
level: INFO
|
|
root:
|
|
level: WARNING
|