Logger class

A logger that prints to the console and writes to a log file.

Constructors

Logger([String? name])
Creates a named logger.
Logger.setup({String? name, String? path, Level? level, Map<String, String>? env})
Setup logging with the given level and log file path.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

debug(Object? message, [Object? error, StackTrace? stackTrace]) → void
Outputs a debug message.
error(Object? message, [Object? error, StackTrace? stackTrace]) → void
Outputs an error message.
info(Object? message, [Object? error, StackTrace? stackTrace]) → void
Outputs an info message.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
warning(Object? message, [Object? error, StackTrace? stackTrace]) → void
Outputs a warning message.

Operators

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