janus.utils.logger#

Classes#

LogFilter

Print all messages that do not include "dealloc" (GPU warning message).

Functions#

create_logger(name)

Create a Logger to be used in different modules

Module Contents#

class janus.utils.logger.LogFilter(name='')#

Bases: logging.Filter

Print all messages that do not include “dealloc” (GPU warning message).

Initialize a filter.

Initialize with the name of the logger which, together with its children, will have its events allowed through the filter. If no name is specified, allow every event.

filter(record)#

Determine if the specified record is to be logged.

Returns True if the record should be logged, or False otherwise. If deemed appropriate, the record may be modified in-place.

Parameters:

record (logging.LogRecord) –

janus.utils.logger.create_logger(name)#

Create a Logger to be used in different modules

Parameters:#

name: str

The name of the logger. Will usually be passed in from the module as __name__.

Returns:#

log: logging.Logger

The Logger object that will be used to create log statements in the terminal.

Parameters:

name (str) –

Return type:

logging.Logger