ftrack_api.logging

ftrack_api.logging.deprecation_warning(message)[source]
class ftrack_api.logging.LazyLogMessage(message, *args, **kwargs)[source]

A log message that can be evaluated lazily for improved performance.

Example:

# Formatting of string will not occur unless debug logging enabled.
logger.debug(LazyLogMessage(
    'Hello {0}', 'world'
))
__init__(message, *args, **kwargs)[source]

Initialise with message format string and arguments.