Logger constructor
Logger({
- LogFilter? filter,
- LogPrinter? printer,
- LogOutput? output,
- Level? level,
Create a new instance of Logger.
You can provide a custom printer
, filter
and output
. Otherwise the
defaults: PrettyPrinter, DevelopmentFilter and ConsoleOutput will be
used.
Implementation
Logger({
LogFilter? filter,
LogPrinter? printer,
LogOutput? output,
Level? level,
}) : _filter = filter ?? defaultFilter(),
_printer = printer ?? defaultPrinter(),
_output = output ?? defaultOutput() {
_filter.init();
_filter.level = level ?? Logger.level;
_printer.init();
_output.init();
}