Package coprs :: Module log
[hide private]
[frames] | no frames]

Module log

source code

Variables [hide private]
  send_logs_to = ['root@localhost']
  level = 40
  formatter = logging.Formatter(...
  mail_handler = logging.handlers.SMTPHandler('127.0.0.1', 'copr...
  __package__ = 'coprs'
Variables Details [hide private]

formatter

Value:
logging.Formatter('''
Message type:       %(levelname)s
Location:           %(pathname)s:%(lineno)d
Module:             %(module)s
Function:           %(funcName)s
Time:               %(asctime)s

Message:
...

mail_handler

Value:
logging.handlers.SMTPHandler('127.0.0.1', 'copr-fe-error@{0}'.format(a\
pp.config ['SERVER_NAME'] or 'fedorahosted.org'), send_logs_to, 'Yay, \
error in copr frontend occured!')