Logger class

Simple logger class for logging messages

Constructors

Logger.new(String name, {LogLevel minLevel = LogLevel.info, bool includeTimestamps = true, bool includeLoggerName = true})
Creates a new Logger with the given parameters

Properties

hashCode int
The hash code for this object.
no setterinherited
includeLoggerName bool
Whether to include the logger name in log messages
final
includeTimestamps bool
Whether to include timestamps in log messages
final
minLevel LogLevel
The minimum log level to display
final
name String
The name of the logger
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

debug(String message) → void
Logs a debug message
error(String message) → void
Logs an error message
fatal(String message) → void
Logs a fatal message
fine(String message) → void
Logs a fine message
info(String message) → void
Logs 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
trace(String message) → void
Logs a trace message
warning(String message) → void
Logs a warning message

Operators

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