DaktelaLogger class Null safety

Configuration of DaktelaLogger used in DaktelaConnector callback is a method that is called during processing HTTP requests. In all the cases it provides message and in more specific cases (such as errors) are error and stackTrace also provided. In this method you are allowed to set up custom logging strategy. level defines logger verbosity.

Constructors

DaktelaLogger({required dynamic callback(String message, {Object? error, StackTrace? stackTrace}), DaktelaLogLevel level = DaktelaLogLevel.minimal})

Properties

callback → dynamic Function(String message, {Object? error, StackTrace? stackTrace})
final
hashCode int
The hash code for this object.
read-only, inherited
level DaktelaLogLevel
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

log(String message, {Object? error, StackTrace? stackTrace, DaktelaLogLevel? logLevel}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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