spinifex.logger

Logging utilities for spinifex.

Attributes

Classes

TqdmToLogger

Output stream for TQDM which will output to logger module instead of

Functions

set_verbosity(→ None)

Set the logger verbosity.

Module Contents

class spinifex.logger.TqdmToLogger(logger: logging.Logger | None, level: int | None = None)[source]

Bases: io.StringIO

Output stream for TQDM which will output to logger module instead of the StdOut.

flush() None[source]

Flush write buffers, if applicable.

This is not implemented for read-only and non-blocking streams.

write(buf: str) int[source]

Write string to file.

Returns the number of characters written, which is always equal to the length of the string.

buf = ''[source]
level = None[source]
logger = None[source]
spinifex.logger.set_verbosity(verbosity: int) None[source]

Set the logger verbosity.

Parameters

verbosityint

Verbosity level

spinifex.logger.ch[source]
spinifex.logger.formatter[source]
spinifex.logger.logger[source]