SimpleLogger class Null safety

Get singleton logger by SimpleLogger()

final logger = SimpleLogger();

Constructors

SimpleLogger()
factory

Properties

formatter Formatter?
Customize log output by setting this. [...]
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
includeCallerInfo bool
Includes caller info only when includeCallerInfo is true. See also void setLevel(Level level, {bool includeCallerInfo})
read-only
level Level
read-only
levelPrefixes Map<Level, String>
Customize level prefix by changing this. [...]
read / write
mode LoggerMode
read / write
onLogged OnLogged
Any login inserted after log printed. [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stackTraceLevel Level
read-only

Methods

assertOrShout(bool condition, Object message) → void
config(Object? message) → void
fine(Object? message) → void
finer(Object? message) → void
finest(Object? message) → void
info(Object? message) → void
isLoggable(Level value) bool
log(Level level, Object message) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
setLevel(Level level, {Level stackTraceLevel = Level.SEVERE, bool includeCallerInfo = false}) → void
If includeCallerInfo is true, caller info will be included for any message of this level or above automatically. Because this is expensive, this is false by default. So, setting stackTraceEnabled to true for only debug build is recommended. [...]
severe(Object? message) → void
shout(Object? message) → void
toString() String
A string representation of this object. [...]
inherited
warning(Object? message) → void

Operators

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