fox_logging library
Extensions on the logging package which allows for multiple log-sinks, formatters, filters,...
Classes
- IoLogSink
- A LogSinkMixin which uses stdout and stderr to write logs to.
- JsonFormatter
- Serializes a LogRecord to json.
- JsonLogRecordParser
- Deserializes a json-encoded LogRecord.
- Level
- Levels to control logging output. Logging can be enabled to include all levels above certain Level. Levels are ordered using an integer value Level.value. The predefined Level constants below are sorted as follows (in descending order): Level.SHOUT, Level.SEVERE, Level.WARNING, Level.INFO, Level.CONFIG, Level.FINE, Level.FINER, Level.FINEST, and Level.ALL.
- LevelDependentFormatter
-
Selects a different formatter depending on the level of the
logRecord
. - LogFilter
- Filters logs before they go into the sink.
- Logger
- Use a Logger to log debug messages.
-
LogLevelConverter<
TOut> - A Converter which converts a Level to a generic output.
- LogLevelFilter
- Only logs log-records which have at least a certain level.
- LogLevelToAbbreviationConverter
- Converts a Level to its abbreviation.
- LogLevelToAnsiPenConverter
-
Converts a Level to an
AnsiPen
. - LogLevelToSymbolConverter
- Converts a Level to a unicode symbol.
- LogRecord
- A log entry representation used to propagate information from Logger to individual handlers.
- LogRecordFormatter
- Formats LogRecord to a String. This is used by various LogSinkMixin implementations.
- LogRecordParser
- Parses a String into a LogRecord.
- LogSink
- Listens to log-streams and writes them to a destination.
- MultiLogSink
- Combines multiple LogSinkMixin implementations into one.
- NoLogFilter
- Does not filter any logs.
- PrettyFormatter
- Formats a LogRecord to a pretty, human readable String.
- PrintSink
- A LogSinkMixin which uses the print function to write logs to.
- SimpleFormatter
- Formats as LogRecord in a simple, concise way.
- StreamLogSink
Mixins
- LogSinkMixin
- Listens to log-streams and writes them to a destination.
Extensions
Constants
- defaultLevel → const Level
- The default Level.
Properties
- hierarchicalLoggingEnabled ↔ bool
-
Whether to allow fine-grain logging and configuration of loggers in a
hierarchy.
getter/setter pair
- recordStackTraceAtLevel ↔ Level
-
Automatically record stack traces for any message of this level or above.
getter/setter pair