Add logic for installing luigi service as part of backup app
This commit is contained in:
parent
477af6c6a0
commit
067c02e965
6 changed files with 212 additions and 1 deletions
39
rattail_fabric2/deploy/backup/luigi-logging.conf.mako
Normal file
39
rattail_fabric2/deploy/backup/luigi-logging.conf.mako
Normal file
|
@ -0,0 +1,39 @@
|
|||
## -*- mode: conf; -*-
|
||||
|
||||
${'#'}###########################################################
|
||||
#
|
||||
# Luigi logging config
|
||||
#
|
||||
${'#'}###########################################################
|
||||
|
||||
|
||||
[loggers]
|
||||
keys = root
|
||||
|
||||
[handlers]
|
||||
keys = file, console
|
||||
|
||||
[formatters]
|
||||
keys = generic, console
|
||||
|
||||
[logger_root]
|
||||
handlers = file, console
|
||||
level = DEBUG
|
||||
|
||||
[handler_file]
|
||||
class = handlers.RotatingFileHandler
|
||||
args = ('${envpath}/app/luigi/log/luigi.log', 'a', 1000000, 20, 'utf_8')
|
||||
formatter = generic
|
||||
|
||||
[handler_console]
|
||||
class = StreamHandler
|
||||
args = (sys.stderr,)
|
||||
formatter = console
|
||||
level = WARNING
|
||||
|
||||
[formatter_generic]
|
||||
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
|
||||
datefmt = %Y-%m-%d %H:%M:%S
|
||||
|
||||
[formatter_console]
|
||||
format = %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
|
Loading…
Add table
Add a link
Reference in a new issue