LogLogger class
The main class of the library.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- debugFilePath → String
-
Returns the debug file path or where it should be if the debug mode is disabled.
no setter
- debugMode ↔ bool
-
Returns
true
if the debug mode is active,false
otherwise.getter/setter pair -
logFileIsEmpty
→ Future<
bool> -
Returns
true
if the debug file is empty,false
otherwise.no setter
Static Methods
-
clearFile(
) → Future< void> - Erases the content of the log file.
-
getLogger(
String label) → Logger -
Returns a new instance of a
Logger
or an already registered one in case it's already available one (and not yet deleted) with the samelabel
-
removeLogger(
String label) → void -
If a registered instance of Logger with label
label
is found than resources are freed and the reference is removed. -
setDebugFile(
String path, String fileName) → Future< void> -
Sets the debug file to be in the path
path
with file namefileName
. InvokessetDebugFileDirectory
andsetDebugFileName
in sequence. -
setDebugFileSync(
String path, String fileName) → void -
Sets the debug file to be in the path
path
with file namefileName
. InvokessetDebugFileDirectorySync
andsetDebugFileName
in sequence. -
setMinimumLogLevel(
LoggerLevel level) → void - Sets the minimum logging level: messages with logging level below that will be printed neither in the console nor in the file.