Log class

An extension of the dart logger, but includes class names

Constructors

Log(String name, {Level level = Level.info, bool colors = true})
Creates a new logger

Properties

colors bool
no setter
hashCode int
The hash code for this object.
no setterinherited
iconSize double
no setter
level Level
no setter
logInDebugMode bool
no setter
maxLogs int
no setter
name String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

debug(dynamic message, [Error? error, StackTrace? stackTrace]) → void
Logs at Level.debug, assuming the system is in debug mode
error(dynamic message, [Error? error, StackTrace? stackTrace]) → void
Logs at Level.error
info(dynamic message, [Error? error, StackTrace? stackTrace]) → void
Logs at Level.info
log(dynamic message, [Error? error, StackTrace? stackTrace]) → void
Calls logAt but at the currently set Level through setLevel
logAt(Level level, dynamic message, [Error? error, StackTrace? stackTrace]) → void
Calls log at the given Level
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setColors(bool colors) → void
setIconSize(double iconSize) → void
setLevel(Level level) → void
setLogInDebugMode(bool log) → void
setMaxLogs(int maxLogs) → void
toString() String
A string representation of this object.
inherited
warning(dynamic message, [Error? error, StackTrace? stackTrace]) → void
Logs at Level.warning
wtf(dynamic message, [Error? error, StackTrace? stackTrace]) → void
Logs at Level.wtf

Operators

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

Static Methods

showLogger(BuildContext context) → void