diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-28 01:39:02 -0600 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-28 01:39:02 -0600 |
commit | 316bd855d5720f4babfb79d20c391de3f8958a60 (patch) | |
tree | 6a26cd36959390fabf00fe1bba9963e2d8f87c36 /ipalib/constants.py | |
parent | 2307d4ddd0409f00511c4d83ad7dab5e9d6d96df (diff) | |
download | freeipa-316bd855d5720f4babfb79d20c391de3f8958a60.tar.gz freeipa-316bd855d5720f4babfb79d20c391de3f8958a60.tar.xz freeipa-316bd855d5720f4babfb79d20c391de3f8958a60.zip |
Added util.configure_logging() function; API.bootstrap() now calls util.configure_logging()
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 25ee6c312..7220561f7 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', +]) |