Shaburger class

Very naive logging class

Constructors

Shaburger({String name = _baseName, bool logToFile = false, String? path, String? filename})
Factory constructor allowing to parametrized the next call to logging name : the name of the logger, also the key inside loggers, if no name is given default to main prefix : the prefix for each logged line logToFile : Logging will be also written to file (sync) path : if logToFile is true , this allow to indicate the path where to write the log filename : if logToFile is true , this allow to indicate the name of the log file
factory

Properties

filename String?
Filename if logToFile is true
final
hashCode int
The hash code for this object.
no setterinherited
logToFile bool
If set to true, the log will also be written into _logFile
getter/setter pair
name String
Logger name
final
path String?
File path if logToFile is true
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

e(String message) → void
Shorthand of error
error(String message) → void
Log a message in red with ERR as identifier
i(String message) → void
Shorthand for info
info(String message) → void
Log a message in blue with INFO as identifier
l(String message) → void
Shorthand for log
log(String message) → void
log a message in grey with LOG as identifier
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
s(String message) → void
Shorthand of success
success(String message) → void
Log a message in green with SUCCESS as identifier
toString() String
A string representation of this object.
inherited
w(String message) → void
Shorthand of warning
warning(String message) → void
Log a message in yellow with WARN as identifier

Operators

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

Static Properties

loggers Map<String, Shaburger>
Return all the created logger using the name as key
no setter