MonitorConfig class
Monitor configuration with all customization options
- Annotations
Constructors
-
MonitorConfig({int maxLogs = 500, bool enableLogStorage = true, ConsoleLogFormat consoleFormat = ConsoleLogFormat.verbose, int? maxBodyLength = 10000, int? maxHeaderLength, List<
String> headerRedactionKeys = const ['authorization', 'cookie', 'set-cookie', 'x-api-key', 'api-key'], List<String> bodyRedactionKeys = const ['password', 'token', 'secret', 'api_key', 'apiKey', 'access_token', 'accessToken', 'refresh_token', 'refreshToken'], bool logRequestHeaders = true, bool logResponseHeaders = true, bool logRequestBody = true, bool logResponseBody = true}) -
const
Properties
-
bodyRedactionKeys
→ List<
String> -
final
- consoleFormat → ConsoleLogFormat
-
final
- enableLogStorage → bool
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
headerRedactionKeys
→ List<
String> -
final
- logRequestBody → bool
-
final
- logRequestHeaders → bool
-
final
- logResponseBody → bool
-
final
- logResponseHeaders → bool
-
final
- maxBodyLength → int?
-
final
- maxHeaderLength → int?
-
final
- maxLogs → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{int? maxLogs, bool? enableLogStorage, ConsoleLogFormat? consoleFormat, int? maxBodyLength, int? maxHeaderLength, List< String> ? headerRedactionKeys, List<String> ? bodyRedactionKeys, bool? logRequestHeaders, bool? logResponseHeaders, bool? logRequestBody, bool? logResponseBody}) → MonitorConfig - Create a copy with modified fields
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
truncateIfNeeded(
String? text, int? maxLength) → String? - Truncate text if needed
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override