Skip to content

Commit

Permalink
logging: centralise log level and format config
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Rodriguez committed Apr 1, 2019
1 parent 98911b2 commit 1fbb27e
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions reana_commons/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,13 @@
['check_predefined_conditions',
'check_running_job_count']}

REANA_ENGINE_LOG_LEVEL = os.getenv('ENGINE_LOG_LEVEL', logging.DEBUG)
"""Level of verbosity for engine logs."""

REANA_ENGINE_LOG_FORMAT = os.getenv('ENGINE_LOG_FORMAT',
'%(asctime)s - '
'%(name)s - '
'%(levelname)s - '
'%(message)s')
"""Format of engine logs."""
REANA_LOG_LEVEL = logging.getLevelName(os.getenv('REANA_LOG_LEVEL', 'DEBUG'))
"""Log verbosity level for REANA components."""

REANA_LOG_FORMAT = os.getenv('REANA_LOG_FORMAT',
'%(asctime)s | %(name)s | %(threadName)s | '
'%(levelname)s | %(message)s')
"""REANA components log format."""

CVMFS_REPOSITORIES = {
'alice.cern.ch': 'alice',
Expand Down

0 comments on commit 1fbb27e

Please sign in to comment.