DefaultLogger class

Logger class, that manages the logging of messages

Inheritance

Constructors

DefaultLogger([LoggingOptions options = const LoggingOptions()])
Constructs an instance of DefaultLogger.

Properties

hashCode int
The hash code for this object.
no setterinherited
logs Stream<LogMessage>
Stream of log messages
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

debug(String message, {Object? error, StackTrace? stackTrace, Map<String, Object?>? context, bool printStackTrace = true, bool printError = true}) → void
Logs a message with LogLevel.debug.
inherited
destroy() → void
Destroys the logger and releases any resources
override
error(String message, {Object? error, StackTrace? stackTrace, Map<String, Object?>? context, bool printStackTrace = true, bool printError = true}) → void
Logs a message with LogLevel.error.
inherited
fatal(String message, {Object? error, StackTrace? stackTrace, Map<String, Object?>? context, bool printStackTrace = true, bool printError = true}) → void
Logs a message with LogLevel.fatal.
inherited
info(String message, {Object? error, StackTrace? stackTrace, Map<String, Object?>? context, bool printStackTrace = true, bool printError = true}) → void
Logs a message with LogLevel.info.
inherited
log(String message, {required LogLevel level, Object? error, StackTrace? stackTrace, Map<String, Object?>? context, bool printStackTrace = true, bool printError = true}) → void
Logs a message with the specified level.
override
logFlutterError(FlutterErrorDetails details) → void
Logs a flutter error with LogLevel.error.
inherited
logPlatformDispatcherError(Object error, StackTrace stackTrace) bool
Logs a platform dispatcher error with LogLevel.error.
inherited
logZoneError(Object error, StackTrace stackTrace) → void
Logs a zone error with LogLevel.error.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
trace(String message, {Object? error, StackTrace? stackTrace, Map<String, Object?>? context, bool printStackTrace = true, bool printError = true}) → void
Logs a message with LogLevel.trace.
inherited
warn(String message, {Object? error, StackTrace? stackTrace, Map<String, Object?>? context, bool printStackTrace = true, bool printError = true}) → void
Logs a message with LogLevel.warn.
inherited

Operators

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