Documentation WIP 2 (added demo param)
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
import logging
|
||||
import sys
|
||||
|
||||
import options
|
||||
|
||||
|
||||
generalLogPath = "./generalLog.log"
|
||||
tradingLogPath = "./tradingLog.log"
|
||||
@ -29,6 +31,7 @@ generalLogger = setupLogger('general', logging.INFO, generalLogPath, generalForm
|
||||
tradingFormatter = logging.Formatter('%(asctime)s - %(message)s')
|
||||
tradingLogger = setupLogger('trade', logging.NOTSET, tradingLogPath, tradingFormatter)
|
||||
|
||||
# Общий лог ну совсем
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
superGeneralLogger = logging.getLogger('superGeneral')
|
||||
# Максимально подробный общий лог
|
||||
if options.showExtraDebugLogs:
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
superGeneralLogger = logging.getLogger('superGeneral')
|
||||
|
||||
Reference in New Issue
Block a user