LoggerConfig class

Immutable configuration for SDK logging.

Controls the master logger toggle and per-layer log filtering. Pass this to AppSettingsBuilder.setLoggerConfig() during SDK init.

Example:

final settings = (AppSettingsBuilder()
  ..setRegion('us')
  ..setLoggerConfig(LoggerConfig(
    enableLogger: true,
    enableSocketLogs: true,
    enableRepositoryLogs: true,
  )))
  .build();

Constructors

LoggerConfig({bool enableLogger = false, bool enableSocketLogs = false, bool enableHttpLogs = false, bool enableRepositoryLogs = false, bool enableApiLogs = false, bool enableAuthLogs = false, bool enableBootstrapLogs = false, bool enableClientLogs = false})
const
LoggerConfig.enableAll()
Creates a config with the master toggle and all layers enabled.
const

Properties

enableApiLogs bool
Enable logs from API endpoints.
final
enableAuthLogs bool
Enable logs from the authentication layer.
final
enableBootstrapLogs bool
Enable logs from SDK bootstrap/initialization.
final
enableClientLogs bool
Enable logs from the SDK client facade.
final
enableHttpLogs bool
Enable logs from the HTTP transport layer.
final
enableLogger bool
Master toggle. When false, all logging is suppressed regardless of layer settings.
final
enableRepositoryLogs bool
Enable logs from domain repositories.
final
enableSocketLogs bool
Enable logs from the WebSocket transport layer.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? enableLogger, bool? enableSocketLogs, bool? enableHttpLogs, bool? enableRepositoryLogs, bool? enableApiLogs, bool? enableAuthLogs, bool? enableBootstrapLogs, bool? enableClientLogs}) LoggerConfig
Creates a copy with the given fields replaced.
isLayerEnabled(LogLayer layer) bool
Whether logging is active for the given layer.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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