Logger class Null safety

Inheritance

Constructors

Logger(String _filename, [int logLevel = 1])

Properties

countErrors int
@protected, read / write, inherited
errors List<String>
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
logLevel int
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

clearErrors() → void
Clears all errors.
inherited
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)
inherited
filename() String
Getter of _filename.
log(String message, [int level = 1]) bool
Displays the message if logLevel <= level message: message to display level: represent the importance of the message Returns true (for chaining)
override
logToFile(String message) → void
Writes a string into the logfile. message the line to write
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
setMaxErrors(int value) → void
Sets the _maxErrors to limit the length of the internal error list.
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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