Logger class

Class used to log messages to console, files, and more loggers

Constructors

Logger({LogFilter? filter, LogOutput? output, LogLevel minimumLevel = LogLevel.Debug})
Creates a new Logger
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
minimumLevel LogLevel
The minimum level to process
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

debug(String message, {dynamic error, StackTrace? stackTrace, Map<String, dynamic>? data}) → void
Logs an LogLevel.Debug message
error(String message, {dynamic error, StackTrace? stackTrace, Map<String, dynamic>? data}) → void
Logs an LogLevel.Error message
fatal(String message, {dynamic error, StackTrace? stackTrace, Map<String, dynamic>? data}) → void
Logs an LogLevel.Fatal message
info(String message, {dynamic error, StackTrace? stackTrace, Map<String, dynamic>? data}) → void
Logs an LogLevel.Info message
warning(String message, {dynamic error, StackTrace? stackTrace, Map<String, dynamic>? data}) → void
Logs an LogLevel.Warning message