BasicConsoleLogger class final

Inheritance

Constructors

BasicConsoleLogger({String? name})

Properties

hashCode int
The hash code for this object.
no setterinherited
isDebugEnabled bool
Whether log events at the LogLevel.debug level will be logged
no setteroverride
isErrorEnabled bool
Whether log events at the LogLevel.error level will be logged
no setteroverride
isFatalEnabled bool
Whether log events at the LogLevel.fatal level will be logged
no setteroverride
isInfoEnabled bool
Whether log events at the LogLevel.info level will be logged
no setteroverride
isTraceEnabled bool
Whether log events at the LogLevel.trace level will be logged
no setteroverride
isWarnEnabled bool
Whether log events at the LogLevel.warn level will be logged
no setteroverride
name String
Name of this logger
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

debug(dynamic message, {Exception? exception, Map<String, dynamic>? eventProperties}) → void
Writes a diagnostic message at the LogLevel.debug level
override
error(dynamic message, {Exception? exception, Map<String, dynamic>? eventProperties}) → void
Writes a diagnostic message at the LogLevel.error level
override
fatal(dynamic message, {Exception? exception, Map<String, dynamic>? eventProperties}) → void
Writes a diagnostic message at the LogLevel.fatal level
override
info(dynamic message, {Exception? exception, Map<String, dynamic>? eventProperties}) → void
Writes a diagnostic message at the LogLevel.info level
override
isEnabled(LogLevel level) bool
Checks whether this logger is enabled for a given [LogLevel
override
log(dynamic message, {required LogLevel level, Exception? exception, Map<String, dynamic>? eventProperties}) → void
Writes a diagnostic message at the given LogLevel level
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
swallow(Function action) → void
Runs action.
inherited
swallowAsync(Function action) Future<void>
Runs async action.
inherited
swallowResult<T>(T? action(), [T? fallbackValue]) → T?
Runs the provided function and returns its result.
inherited
swallowResultAsync<T>(Future<T?> action(), T? fallbackValue) Future<T?>
Runs the provided async function and returns its result.
inherited
toString() String
A string representation of this object.
inherited
trace(dynamic message, {Exception? exception, Map<String, dynamic>? eventProperties}) → void
Writes a diagnostic message at the LogLevel.trace levels
override
warn(dynamic message, {Exception? exception, Map<String, dynamic>? eventProperties}) → void
Writes a diagnostic message at the LogLevel.warn level
override

Operators

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