cutout_fits.logger¶
Logging utilities for fitscube.
Attributes¶
Classes¶
Output stream for TQDM which will output to logger module instead of |
Functions¶
|
Set the logger verbosity. |
Module Contents¶
- class cutout_fits.logger.TqdmToLogger(logger: logging.Logger | None, level: int | None = None)¶
Bases:
io.StringIOOutput 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:
logger (logging.Logger) – The logger
verbosity (int) – Verbosity level
- cutout_fits.logger.ch¶
- cutout_fits.logger.formatter¶
- cutout_fits.logger.logger¶