fox_logging 0.5.3 copy "fox_logging: ^0.5.3" to clipboard
fox_logging: ^0.5.3 copied to clipboard

Utilities for the logging package like Formatter, Sinks,... It provides a flow to make logging more structured by introducing sinks and formatters.

Fox Logging #

codecov Ensure code quality License: MIT

A package containing some helpful extensions for the standard logging package. It provides a flow to make logging more structured by introducing sinks and formatters.

Sink #

A sink write a log entry to some place, like the console, file, database,...

final printSink = PrintSink(myFormatter);

Formatter #

Formatters format a LogRecord to a String in a certain way. This can be a pretty, verbose or simple, concise log. Or a complete custom implementation.

final simpleFormatter = SimpleFormatter();

Small example #

final logger = Logger('Simple');
final printer = PrintSink(SimpleFormatter())
  ..listenTo(logger.onRecord);

For a more detailed example check out the example.

3
likes
0
pub points
34%
popularity

Publisher

unverified uploader

Utilities for the logging package like Formatter, Sinks,... It provides a flow to make logging more structured by introducing sinks and formatters.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ansicolor, logging

More

Packages that depend on fox_logging