yt.utilities.logger module

class yt.utilities.logger.DeprecatedFieldFilter(name='')[source]

Bases: logging.Filter

A filter that suppresses repeated logging of deprecated field warnings

filter(record)[source]

Determine if the specified record is to be logged.

Is the specified record to be logged? Returns 0 for no, nonzero for yes. If deemed appropriate, the record may be modified in-place.

class yt.utilities.logger.DuplicateFilter(name='')[source]

Bases: logging.Filter

A filter that removes duplicated successive log entries.

filter(record)[source]

Determine if the specified record is to be logged.

Is the specified record to be logged? Returns 0 for no, nonzero for yes. If deemed appropriate, the record may be modified in-place.

yt.utilities.logger.add_coloring_to_emit_ansi(fn)[source]
yt.utilities.logger.colorize_logging()[source]
yt.utilities.logger.disable_stream_logging()[source]
yt.utilities.logger.set_log_level(level)[source]

Select which minimal logging level should be displayed.

Parameters

level (int or str) – Possible values by increasing level: 0 or “notset” 1 or “all” 10 or “debug” 20 or “info” 30 or “warning” 40 or “error” 50 or “critical”

yt.utilities.logger.uncolorize_logging()[source]