LoggerHandler class abstract

Constructors

LoggerHandler(Logger logger)

Properties

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

Methods

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.
inherited
printMessage(Level level, String message) → void
resolveLogDestiny(Object? logDestiny) MessageLogger?
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

dbLoggers List<Logger>
no setter
root LoggerHandler
final
rootLogger → Logger
final
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