\r\n

51Degrees Pipeline Python  4.4

51Degrees Pipeline for Python

fiftyone_pipeline_core.logger.Logger Class Reference

Detailed Description

Logging for a Pipeline.

Inheritance diagram for fiftyone_pipeline_core.logger.Logger:

[legend]

Public Member Functions

def  __init__ (self, min_level="error", settings={})
Create a logger. More...
def  log (self, level, message)
Log a message. More...
def  log_internal (self, level, log)
Internal logging function overridden by specific loggers. More...

Public Attributes

 min_level
 settings

Constructor & Destructor Documentation

◆ __init__()

def fiftyone_pipeline_core.logger.Logger.__init__ (   self,
  min_level = "error",
  settings = {}  
)

Create a logger.

@type minLevel: str|list

Parameters
minLevel - Logging level ("debug", "info", "warning", "error", "critical")

Reimplemented in tests.classes.memorylogger.MemoryLogger.

Member Function Documentation

◆ log()

def fiftyone_pipeline_core.logger.Logger.log (   self,
  level,
  message  
)

Log a message.

@type level: string

Parameters
level - The level of log message

@type message: string

Parameters
message - The content of log message

◆ log_internal()

def fiftyone_pipeline_core.logger.Logger.log_internal (   self,
  level,
  log  
)

Internal logging function overridden by specific loggers.

@type level: string

Parameters
level - The level of log message

@type log: dict

Parameters
log - The body of log entry

Reimplemented in tests.classes.memorylogger.MemoryLogger.

Member Data Documentation

◆ allowed_levels

fiftyone_pipeline_core.logger.Logger.allowed_levels

◆ min_level

fiftyone_pipeline_core.logger.Logger.min_level

◆ settings

fiftyone_pipeline_core.logger.Logger.settings
On This Page