LoggerHandler class abstract


LoggerHandler(Logger logger)


hashCode int
The hash code for this object.
no setterinherited
id int
isLoggingAll bool
no setter
isLoggingDB bool
no setter
isolateDebugName String
no setter
logger → Logger
parent LoggerHandler?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


flushMessages({Duration? delay = const Duration(milliseconds: 20)}) FutureOr<bool>
Flushes the messages in the queue (if the implementation has one). See useLogQueue.
getLogDbTo() MessageLogger?
getLogErrorTo() MessageLogger?
logAll() → void
logAllMessage(Level level, String message) → void
logAllTo({MessageLogger? messageLogger, Object? logDestiny, bool includeDBLogs = false}) → void
logBuffered(Object identifier, MessagesBlockLogger messagesBlockLogger, Level level, String message) → void
logDBMessage(Level level, String message) → void
logDbTo({MessageLogger? messageLogger, Object? logDestiny}) → void
logErrorMessage(Level level, String message) → void
logErrorTo({MessageLogger? messageLogger, Object? logDestiny}) → void
loggerName(LogRecord msg) String
logToConsole({bool enabled = true}) → void
enabled]/disable logs to the console.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
printMessage(Level level, String message) → void
resolveLogDestiny(Object? logDestiny) MessageLogger?
toString() String
A string representation of this object.


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

Static Properties

dbLoggers List<Logger>
no setter
root LoggerHandler
rootLogger → Logger
useLogQueue bool
If true printMessage implementation can use a queue and delay the message to the output.
no setter

Static Methods

create(Logger logger) LoggerHandler
disableLogQueue() → void
Sets useLogQueue to false.
enableLogQueue() → void
Sets useLogQueue to true.
getLogAllTo() MessageLogger?
getLogToConsole() bool
isDbLoggerName(String name) bool
truncateString(String s, int limit) String