Loggers class

Definition

Factory of loggers.

Inheritance
builtins.object
Loggers

Methods

applicationinsights_event_logger(*args, **kwargs)

Return the Application Insights logger.

In most common scenarios, use the get_appinsights_log_handler(instrumentation_key, logger=None, *args, **kwargs) function to get a handle to the Application Insights logger.

default_logger(*args, **kwargs)

Return the default logger.

In most common scenarios, use the get_event_logger(*args, **kwargs) function to get an instance of the default logger.

inmemory_event_logger()

Return the mock event logger.

applicationinsights_event_logger(*args, **kwargs)

Return the Application Insights logger.

In most common scenarios, use the get_appinsights_log_handler(instrumentation_key, logger=None, *args, **kwargs) function to get a handle to the Application Insights logger.

applicationinsights_event_logger(*args, **kwargs)

Parameters

cls

Returns

ApplicationInsights logger

Return type

_AppInsightsEventLogger

default_logger(*args, **kwargs)

Return the default logger.

In most common scenarios, use the get_event_logger(*args, **kwargs) function to get an instance of the default logger.

default_logger(*args, **kwargs)

Parameters

cls

inmemory_event_logger()

Return the mock event logger.

inmemory_event_logger()

Parameters

cls

Returns

mock event logger

Return type

MemoryEventLogger

Attributes

APPINSIGHT_LOGGERS

APPINSIGHT_LOGGERS = {}

INSTRUMENTATION_KEY_KEY

INSTRUMENTATION_KEY_KEY = 'instrumentation_key'