Logging (taurex.log)¶
Logger¶
Taurex logging module.
- class Loggable(name: str | None = None)[source]¶
Bases:
objectBase class for loggable objects.
- class TauRexHandler(stream: IOBase | None = None)[source]¶
Bases:
StreamHandlerLogging Handler for Taurex 3.
Prevents other MPI threads from writing to log unless they are in trouble (>=ERROR)
- Parameters:
stream (stream-object , optional) – Stream to write to otherwise defaults to
stderr
- emit(record: LogRecord) None[source]¶
Emit a record.
If a formatter is specified, it is used to format the record. The record is then written to the stream with a trailing newline. If exception information is present, it is formatted using traceback.print_exception and appended to the stream. If the stream has an ‘encoding’ attribute, it is used to determine how to do the output to the stream.
Module contents¶
Main logging module.
- class Loggable(name: str | None = None)[source]¶
Bases:
objectBase class for loggable objects.