ILogRecorder class abstract

The purpose of this abstraction is to define a common interface or contract for different types of log recorders.

By implementing this class, different log recorders can adhere to the same interface.

Implementers

Constructors

ILogRecorder()
The purpose of this abstraction is to define a common interface or contract for different types of log recorders.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
logLevel int
The logLevel getter returns the log level of the log recorder instance. This log level represents the minimum level of logs that will be recorded by this recorder.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canRecord(LogRecordEntity record) bool
validate whether the current log record should be recorded by the log recorder instance. By default, it checks if the log level of the log recorder is equal to or less than the log level of the given record parameter.
close() → void
called when this particular log recorder is removed from the manager. It serves as a cleanup or finalization method for any resources or operations associated with the log recorder.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onRecord(LogRecordEntity record) → void
a callback that will be invoked when the manager receives a new log record that can be recorded by this specific recorder. It takes a LogRecordEntity object as a parameter, representing the log record that was received.
toString() String
A string representation of this object.
inherited

Operators

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