moved logging-default.toml

This commit is contained in:
tim
2024-10-15 00:20:06 -04:00
parent 1c60dd5c28
commit 5c19358e38

49
conf/logging-default.toml Normal file
View File

@@ -0,0 +1,49 @@
# https://docs.python.org/3/library/logging.config.html#logging-config-dictschema
version=1
[loggers.'']
level='INFO'
handlers=['console',]
[loggers.dexorder]
level='DEBUG'
[handlers.console]
class='logging.StreamHandler'
formatter='default'
stream='ext://sys.stdout'
[formatters.default]
# https://docs.python.org/3/library/logging.html#logrecord-attributes
format='%(asctime)s %(levelname)s %(name)s %(message)s'
# https://docs.python.org/3/library/time.html#time.strftime
datefmt='%Y-%m-%d %H:%M:%S'
[formatters.notime]
# https://docs.python.org/3/library/logging.html#logrecord-attributes
format='%(levelname)s %(name)s %(message)s'
# https://docs.python.org/3/library/time.html#time.strftime
datefmt='%Y-%m-%d %H:%M:%S'
#
# Uncomment this block to enable an orders.log file that records only dexorder.order logs
#
#[loggers.'dexorder.order.log']
#level='DEBUG'
#handlers=['ordersfile',]
#propagate=true
#
#[handlers.ordersfile]
#class='logging.FileHandler'
#formatter='default'
#filename='orders.log'
#encoding='utf8'
#mode='w'
#
#[formatters.orderlog]
## https://docs.python.org/3/library/logging.html#logrecord-attributes
#format='%(asctime)s %(levelname)s %(message)s'
## https://docs.python.org/3/library/time.html#time.strftime
#datefmt='%Y-%m-%d %H:%M:%S'