comparison src/core/constants.py @ 991:05e02f8b7eb4

core: logging refactoring, first step: - added a core.log module - 3 backends can be used: basic, standard (python's logging module) or twisted - colors can be used - the module has been made to be used by frontends, it should work in exotic environments like pyjamas - logging basic configuration is now made in sat.tac - core.log configuration is inspired from python standard logging, and use it when possible - getLogger should be used the same way as for standard logging
author Goffi <goffi@goffi.org>
date Sat, 19 Apr 2014 00:02:38 +0200
parents f0e407709d8e
children 652c01ca69b1
comparison
equal deleted inserted replaced
990:f0e407709d8e 991:05e02f8b7eb4
70 70
71 ## Plugins ## 71 ## Plugins ##
72 # names of widely used plugins 72 # names of widely used plugins
73 TEXT_CMDS = 'TEXT-COMMANDS' 73 TEXT_CMDS = 'TEXT-COMMANDS'
74 74
75 ## Logging ##
76 LOG_BACKEND_STANDARD = 'standard'
77 LOG_BACKEND_TWISTED = 'twisted'
78 LOG_BACKEND_BASIC = 'basic'
79 LOG_BASE_LOGGER = 'root'
80
75 ## Misc ## 81 ## Misc ##
76 SAVEFILE_DATABASE = "sat.db" 82 SAVEFILE_DATABASE = "sat.db"
77 IQ_SET = '/iq[@type="set"]' 83 IQ_SET = '/iq[@type="set"]'
78 84
79 ## ANSI escape sequences ## 85 ## ANSI escape sequences ##