codenic_exception_converter library
Classes
- AdvancedFileOutput
- Accumulates logs in a buffer to reduce frequent disk, writes while optionally switching to a new log file if it reaches a certain size.
- AnsiColor
- This class handles colorizing of terminal output.
- CodenicLogger
- Creates a logger that appropriately displays information from a MessageLog.
- ConsoleOutput
- Default implementation of LogOutput.
- DevelopmentFilter
-
Prints all logs with
level >= Logger.level
while in development mode (eg whenassert
s are evaluated, Flutter calls this debug mode). -
Either<
L, R> - Represents a value of one of two possible types, Left or Right.
- Equatable
- A base class to facilitate operator == and hashCode overrides.
- EquatableConfig
- The default configurion for all Equatable instances.
-
ExceptionConverter<
E extends Exception, T> -
An abstract class that converts an exception
E
to a Failure if exceptionE
occurs while running observe . - ExceptionConverterSuite
-
An abstract class that converts an exception
E
to a Failure if exceptionE
occurs while running observe . - Failure
- A base class for all failures.
- FileOutput
- HybridPrinter
- A decorator for a LogPrinter that allows for the composition of different printers to handle different log messages. Provide it's constructor with a base printer, but include named parameters for any levels that have a different printer:
-
Left<
L, R> - LogEvent
- LogFilter
- An abstract filter of log messages.
- LogfmtPrinter
- Outputs a logfmt message:
- Logger
- Use instances of logger to send log messages to the LogPrinter.
- LogOutput
- Log output receives a OutputEvent from LogPrinter and sends it to the desired destination.
- LogPrinter
- An abstract handler of log events.
- MemoryOutput
- Buffers OutputEvents.
- MessageLog
- A container for log information.
- MessageLogPrinter
- An extension of PrettyPrinter that displays the content of a MessageLog and prevents long texts from being truncated.
- MultiOutput
- Logs simultaneously to multiple LogOutput outputs.
- OutputEvent
- PrefixPrinter
- A decorator for a LogPrinter that allows for the prepending of every line in the log output with a string for the level of that log. For example:
- PrettyPrinter
- Default implementation of LogPrinter.
- ProductionFilter
-
Prints all logs with
level >= Logger.level
even in production. -
Right<
L, R> - SimplePrinter
- Outputs simple log messages:
- StreamOutput
Enums
Mixins
- EquatableMixin
- A mixin that helps implement equality without needing to explicitly override operator == and hashCode.
Extensions
-
EitherExtension
on Either<
L, R> - Extension for the Either class.
Typedefs
-
ExceptionConverterFactory
= ExceptionConverter<
Exception, T> Function<T>() - A signature for ExceptionConverter factories.
- LogCallback = void Function(LogEvent event)
- OutputCallback = void Function(OutputEvent event)