cutout_fits.logger

Logging utilities for fitscube.

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 cutout_fits.logger.TqdmToLogger(logger: logging.Logger | None, level: int | None = None)

Bases: io.StringIO

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

flush() None

Flush write buffers, if applicable.

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

write(buf: str) int

Write string to file.

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

buf = ''
level = None
logger = None
cutout_fits.logger.set_verbosity(verbosity: int) None

Set the logger verbosity.

Parameters:
cutout_fits.logger.ch
cutout_fits.logger.formatter
cutout_fits.logger.logger