diff options
Diffstat (limited to 'ipalib/constants.py')
-rw-r--r-- | ipalib/constants.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ipalib/constants.py b/ipalib/constants.py index 25ee6c31..7220561f 100644 --- a/ipalib/constants.py +++ b/ipalib/constants.py @@ -87,3 +87,19 @@ DEFAULT_CONFIG = ( ('log', None), # Path to log file ) + + +LOGGING_CONSOLE_FORMAT = ' '.join([ + '%(levelname)s', + '%(message)s', +]) + + +# Tab-delimited format designed to be easily opened in a spreadsheet: +LOGGING_FILE_FORMAT = ' '.join([ + '%(created)f', + '%(levelname)s', + '%(message)r', # Using %r for repr() so message is a single line + '%(pathname)s', + '%(lineno)d', +]) |