Privacy IDEA don't write log's

Hi

I installded Privacyidea on Ubuntu 14.04 LTS.
Installation was easy,

The First Config of Freeradius was a.p.i.t.a, yo know.

After a Weekfull of frustration i reinstall Ubuntu and PI ( 4 times)

Evertime the same two Issue.

Smtptosms not work and first, i’ts not possible to troubleshoot without any
logs :wink:

I’ver checked :

/privacyidea/config.py

class Config:

PI_LOGFILE = "privacyidea.log"
PI_LOGLEVEL = logging.DEBUG
PI_LOGCONFIG = "/etc/privacyidea/logging.cfg"

/etc/privacyidea/pi.cfg

PI_AUDIT_KEY_PRIVATE = '/etc/privacyidea/private.pem’
PI_AUDIT_KEY_PUBLIC = '/etc/privacyidea/public.pem’
PI_LOGFILE = '/var/log/privacyidea/privacyidea.log’
PI_LOGCONFIG = “/etc/privacyidea/logging.cfg”
#PI_LOGLEVEL = logging.INFO
PI_LOGLEVEL = 10

and

/etc/privacyidea/logging.cfg

[frmatters]
keys=detail

[handlers]
keys=file,mail

[formatter_detail]
class=privacyidea.lib.log.SecureFormatter
format=[%(asctime)s][%(process)d][%(thread)d][%(levelname)s][%(name)s:%(lineno)d]
%(message)s

[handler_mail]
class=logging.handlers.SMTPHandler
level=ERROR
formatter=detail
args=(‘mail.company.com’, myname@company.com’, ‘PI Error’)

[handler_file]

Rollover the logfile at midnight

class=logging.handlers.RotatingFileHandler
backupCount=14
maxBytes=10000000
formatter=detail
level=DEBUG
args=(’/var/log/privacyidea/privacyidea.log’,)

[loggers]
keys=root,privacyidea

[logger_privacyidea]
handlers=file,mail
qualname=privacyidea
level=DEBUG

[logger_root]
level=NOTSET
handlers=file

Any Ideas ?

Tom

Hi Cornelius

Than you.

After Reinstallation without succes i try with loging.cfg as followed:

[formatters]
keys=detail

[handlers]
keys=file

[formatter_detail]
class=privacyidea.lib.log.SecureFormatter
format=[%(asctime)s][%(process)d][%(thread)d][%(levelname)s][%(name)s:%(lineno)d]
%(message)s

[handler_mail]
class=logging.handlers.SMTPHandler
level=ERROR
formatter=detail
args=(‘PI Error’)

[handler_file]

Rollover the logfile at midnight

class=logging.handlers.RotatingFileHandler
backupCount=14
maxBytes=10000000
formatter=detail
level=DEBUG
args=(’/var/log/privacyidea/privacyidea.log’,)

[loggers]
keys=root,privacyidea

[logger_privacyidea]
handlers=file
qualname=privacyidea
level=DEBUG

[logger_root]
level=NOTSET
handlers=file

Well, aer restart Apache ,the logfile will be bigge and bigger :wink:

Regards

Tom