BaseLogger class

Implements the superclass of loggers.

Implementers

Constructors

BaseLogger(int logLevel)
Constructor. logLevel: the messages will be displayed on stdout only if the current level is lower or equals to the logLevel.

Properties

countErrors int
getter/setter pair
errors List<String>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
logLevel int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearErrors() → void
Clears all errors.
error(String message, {StackTrace? stackTrace}) bool
Logs an error message. message: the error message stackTrace: the stack trace (given by exceptions) return: false (can be used for chaining)
log(String message, [int level = LEVEL_SUMMERY]) bool
Displays the message if logLevel <= level message: message to display level: represent the importance of the message Returns true (for chaining)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setMaxErrors(int value) → void
Sets the _maxErrors to limit the length of the internal error list.
toString() String
A string representation of this object.
inherited

Operators

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