From f57c91a83a22566536e24dea0e5adafb51368071 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 29 Mar 2024 15:28:14 -0400 Subject: [PATCH] orders.log logging config --- logging-default.toml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/logging-default.toml b/logging-default.toml index fb3e7f4..3264f8c 100644 --- a/logging-default.toml +++ b/logging-default.toml @@ -24,3 +24,26 @@ datefmt='%Y-%m-%d %H:%M:%S' 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'] +#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'