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 mainprefix
: the prefix for each logged linelogToFile
: Logging will be also written to file (sync)path
: iflogToFile
istrue
, this allow to indicate the path where to write the logfilename
: iflogToFile
istrue
, this allow to indicate the name of the log filefactory
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