RequestLogger class

A logger middleware for shelf that formats its messages according to its logFormatter

Constructors

RequestLogger.new({required Map<String, String?> headers, required LogFormatter logFormatter, @visibleForTesting Stdout? testingStdout})
A logger middleware for shelf that formats its messages according to its logFormatter
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

alert(String message, {Object? payload, Map<String, dynamic>? labels}) → void
Log an event where a person must take an action immediately.
critical(String message, {Object? payload, Map<String, dynamic>? labels}) → void
Log an event that will cause more severe problems or outages.
debug(String message, {Object? payload, Map<String, dynamic>? labels}) → void
Log an event with debug or trace information.
emergency(String message, {Object? payload, Map<String, dynamic>? labels}) → void
Log an event where one or more systems are unusable.
error(String message, {Object? payload, Map<String, dynamic>? labels}) → void
Log an event that is likely to cause problems.
info(String message, {Object? payload, Map<String, dynamic>? labels}) → void
Log an event with routine information, such as ongoing status or performance.
log(Severity severity, String message, {Object? payload, Map<String, dynamic>? labels, StackTrace? stackTrace, bool isError = false, bool includeStacktrace = false, bool includeSourceLocation = true, List<String> packageExcludeList = const ['dart_frog', 'shelf', 'request_logger']}) → void
Write a new log
normal(String message, {Object? payload, Map<String, dynamic>? labels}) → void
Log an event with no assigned severity level.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notice(String message, {Object? payload, Map<String, dynamic>? labels}) → void
Log a normal but significant event, such as start up, shut down, or a configuration change.
toString() String
A string representation of this object.
inherited
warning(String message, {Object? payload, Map<String, dynamic>? labels}) → void
Log an event that might cause problems.

Operators

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