Changeset 591ae81 in OpenWorkouts-current


Ignore:
Timestamp:
Feb 18, 2019, 6:29:52 PM (4 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current, feature/docs, master
Children:
2142a49
Parents:
b5d87e0
Message:

Modified the default logging facilities in development.ini:

  • Set a log file (var/log/openworkouts.log) where all error/warning/info/ debug messages are logged to (we still log to the console too).
  • Set a separate log file for the task running the mail queue processing (var/log/queueprocessor.log)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • development.ini

    rb5d87e0 r591ae81  
    5555
    5656[loggers]
    57 keys = root, ow
     57keys = root, ow, QueueProcessor
    5858
    5959[handlers]
    60 keys = console
     60keys = filelog, console, queueprocessor
    6161
    6262[formatters]
     
    6565[logger_root]
    6666level = INFO
    67 handlers = console
     67handlers = filelog, console
    6868
    6969[logger_ow]
     
    7171handlers =
    7272qualname = ow
     73
     74[logger_QueueProcessor]
     75level = DEBUG
     76handlers = queueprocessor
     77qualname = QueueProcessor
     78propagate = 0
    7379
    7480[handler_console]
     
    7884formatter = generic
    7985
     86[handler_filelog]
     87class = FileHandler
     88args = ('%(here)s/var/log/openworkouts.log', 'a')
     89level = DEBUG
     90formatter = generic
     91
     92[handler_queueprocessor]
     93class = FileHandler
     94args = ('%(here)s/var/log/queueprocessor.log','a')
     95level = DEBUG
     96formatter = generic
     97
    8098[formatter_generic]
    8199format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
Note: See TracChangeset for help on using the changeset viewer.