harbor_cli.logs
Attributes
logger = logging.getLogger('harbor-cli')
module-attribute
Classes
LogLevel
Bases: Enum
Enum for log levels.
Source code in harbor_cli/logs.py
Attributes
NOTSET = 'NOTSET'
class-attribute
instance-attribute
DEBUG = 'DEBUG'
class-attribute
instance-attribute
INFO = 'INFO'
class-attribute
instance-attribute
WARN = 'WARN'
class-attribute
instance-attribute
WARNING = 'WARNING'
class-attribute
instance-attribute
ERROR = 'ERROR'
class-attribute
instance-attribute
FATAL = 'FATAL'
class-attribute
instance-attribute
CRITICAL = 'CRITICAL'
class-attribute
instance-attribute
Functions
__str__() -> str
as_int() -> int
Return the stdlib log level int corresponding to the level.
levels() -> dict[LogLevel, int]
classmethod
LogLineFormatter
Functions
setup_logging(config: LoggingSettings) -> None
Set up file logging.
update_logging(config: LoggingSettings) -> None
Update logging configuration.