SimpleLogger class

Get singleton logger by SimpleLogger()

final logger = SimpleLogger();

Constructors

SimpleLogger()
factory

Properties

callerInfoFrameLevelOffset int
Stack trace level used to determine caller info. Usually you DON'T have to specify this value, but it's useful if you wrap this SimpleLogger by your own logger.
no setter
formatter Formatter?
Customize log output by setting this.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
includeCallerInfo bool
Includes caller info only when includeCallerInfo is true. See also void setLevel(Level level, {bool includeCallerInfo})
no setter
level Level
no setter
levelPrefixes Map<Level, String>
Customize level prefix by changing this.
getter/setter pair
mode LoggerMode
getter/setter pair
onLogged OnLogged
Any login inserted after log printed.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTraceLevel Level
no setter

Methods

assertOrShout(bool condition, Object message, {DateTime? time, Object? error, StackTrace? stackTrace}) → void
config(Object? message, {DateTime? time, Object? error, StackTrace? stackTrace}) String?
fine(Object? message, {DateTime? time, Object? error, StackTrace? stackTrace}) String?
finer(Object? message, {DateTime? time, Object? error, StackTrace? stackTrace}) String?
finest(Object? message, {DateTime? time, Object? error, StackTrace? stackTrace}) String?
info(Object? message, {DateTime? time, Object? error, StackTrace? stackTrace}) String?
isLoggable(Level value) bool
log(Level level, Object message, {DateTime? time, Object? error, StackTrace? stackTrace}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setLevel(Level level, {Level stackTraceLevel = Level.SEVERE, bool includeCallerInfo = false, int callerInfoFrameLevelOffset = 0}) → 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 includeCallerInfo to true for only debug build is recommended.
severe(Object? message, {DateTime? time, Object? error, StackTrace? stackTrace}) String?
shout(Object? message, {DateTime? time, Object? error, StackTrace? stackTrace}) String?
toString() String
A string representation of this object.
inherited
warning(Object? message, {DateTime? time, Object? error, StackTrace? stackTrace}) String?

Operators

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