structlog_sentry_logger

Structlog Sentry Logger

Submodules

Package Contents

Functions

get_config_dict()

Convenience function to get the local logging configuration dictionary,

get_logger()

Convenience function that returns a logger

get_namespaced_module_name(__file__)

Attributes

getLogger

CamelCase alias for structlog_sentry_logger.get_logger.

structlog_sentry_logger.getLogger

CamelCase alias for structlog_sentry_logger.get_logger.

structlog_sentry_logger.get_config_dict()[source]

Convenience function to get the local logging configuration dictionary, e.g., to help configure loggers from other libraries.

Returns: The logging configuration dictionary that would be used to configure the Python logging library component of the logger

Return type

dict

structlog_sentry_logger.get_logger()[source]

Convenience function that returns a logger

Returns: A proxy that creates a correctly configured logger bound to the __name__ of the calling module

Return type

Any

structlog_sentry_logger.get_namespaced_module_name(__file__)[source]
Parameters

__file__ (Union[pathlib.Path, str]) –

Return type

str