BDLogger class

BDLogger used to log messages.

Constructors

BDLogger()
Get an instance of the logger with the following name
factory
BDLogger.private(String name, List<BDLogHandler> _handlers, StreamController<BDLogRecord> _logRecordController)
Create a new instance of the Logger.

Properties

handlers List<BDLogHandler>
Get list of BDLogHandler available in this logger.
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
BDLogger's name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addHandler(BDLogHandler handler) → void
Add a new BDLogHandler handler to the Logger.
debug(String message, {dynamic error, bool? isFatal, StackTrace? stackTrace, String? tag}) → void
Log a message at BDLevel.debug
destroy() Future<void>
Destroy the current instance of BDLogger.
error(String message, Object error, {bool? isFatal, StackTrace? stackTrace, String? tag}) → void
Log a message at BDLogger.error
info(String message, {String? tag}) → void
Log a message at BDLevel.info.
log(BDLevel level, String message, {Object? error, StackTrace? stackTrace, bool? isFatal}) → void
Adds a log record for a message at a particular BDLevel if
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeHandler(BDLogHandler handler) bool
Remove a handler from the list of handlers.
success(String message, {String? tag}) → void
Log a message at BDLevel.success.
toString() String
A string representation of this object.
inherited
warning(String message, {String? tag, dynamic error, bool? isFatal, StackTrace? stackTrace}) → void
Log a message at BDLevel.warning

Operators

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