GazelleLoggerPlugin class
A plugin for easy logging in Gazelle applications.
The GazelleLoggerPlugin class provides functionality for logging inside handlers and standard hooks for request and response logging.
Constructors
- GazelleLoggerPlugin.new({LogOutput? logOutput})
- Creates a GazelleLoggerPlugin instance.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- logRequestHook → GazellePreRequestHook
-
Provides a GazellePreRequestHook that logs details of incoming requests.
no setter
- logResponseHook → GazellePostResponseHook
-
Provides a GazellePostResponseHook that logs details of outgoing responses.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
debug(
String message) → void - Logs a message with the 'debug' level.
-
fatal(
String message) → void - Logs a message with the 'fatal' level.
-
info(
String message) → void - Logs a message with the 'info' level.
-
initialize(
GazelleContext context) → Future< void> - Initializes the plugin and creates a logger instance.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
warning(
String message) → void - Logs a message with the 'warning' level.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited