peltak.core.log
¶
- peltak.core.log.dbg(msg, *args, **kw)[source]¶
Debug level logs, only visible with -vvv flag.
- Return type
- peltak.core.log.detail(msg, *args, **kw)[source]¶
Detail level logs, only visible with -v flag.
- Return type
- peltak.core.log.err(msg, *args, **kw)[source]¶
Per step status messages
Use this locally in a command definition to highlight more important information.
- Return type
- peltak.core.log.get_verbosity()[source]¶
Get the current verbosity level.
This can be set either using the -v/–verbose option or via env variable PELTAK_VERBOSE. The CLI will override the env variable if set. The reason for that is that some of the internals of peltak run before the options are parsed and thus the value given via CLI is not available yet. For this type of bug investigation, you can use the env variable.
The code should use this function instead of just doing
context.get('verbose')
.- Return type