RollingFileTree class abstract

Class for defining rolling file tree. This class handles file logging and printing lines, also provides abstract methods to check if the file should rotate.

Inheritance
Implementers

Constructors

RollingFileTree({String logFormat = CustomFormatTree.defaultFormat, List<String> logLevels = CustomFormatTree.defaultLevels})
Creates RollingFileTree with log format and levels as optional parameters.

Properties

colorizeMap Map<String, ColorizeStyle>
Map of log levels and their colorizing style.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
logFormat String
Log line format style.
getter/setter pairinherited
outputFileName String
Output current log file name.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Closes a tree, use it to flush buffer/caches or close any resource.
inherited
getLevels() List<String>
Gets levels of logging serviced by this LogTree
inherited
log(String level, String msg, {String? tag, dynamic ex, StackTrace? stacktrace}) → void
Logs a message with level/tag and optional stacktrace or exception.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printLine(String line, {String? level}) Future<void>
Prints log line with optional log level.
override
printLog(String logLine, {String? level}) → void
Method to overload printing to output stream the formatted logline Adds handing of time
inherited
rollToNextFile() → void
Roll to new file
shouldRollNextFile() FutureOr<bool>
Return true if log file should rotate to new.
toString() String
A string representation of this object.
inherited

Operators

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