Logger class

Constructors

Logger({String? service, String? defaultModule, LokiOptions? lokiOptions, LoggerOptions options = defaultLevelOptions, LoggerFilter? filter, dynamic onLog(OnLogParams)?})
const

Properties

defaultModule String?
final
filter LoggerFilter?
final
hashCode int
The hash code for this object.
no setterinherited
lokiEnabled bool
no setter
lokiOptions LokiOptions?
final
onLog → dynamic Function(OnLogParams)?
final
options LoggerOptions
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
service String?
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setter

Methods

copyWith({String? service, String? defaultModule, LoggerOptions? options, LokiOptions? lokiOptions, LoggerFilter? filter}) Logger
debug(dynamic msg, {String? module, LokiLabel? labels}) → void
disposeLoki() → void
error(dynamic msg, {StackTrace? stackTrace, String? module, LokiLabel? labels}) → void
info(dynamic msg, {String? module, LokiLabel? labels}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startLoki() Future<void>
toString() String
A string representation of this object.
inherited
trace(dynamic msg, {String? module, LokiLabel? labels}) → void
warn(dynamic msg, {String? module, LokiLabel? labels}) → void

Operators

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