SDKLoggerConfig class

Central logging service holding the currently-configured logging configuration + registered destinations. Mirrors Swift's Logging.shared: every SDKLogger record routes through log, which applies the min-level gate, suppresses debug records in production, and fans out to the console

  • registered destinations. C++ logging is configured separately during DartBridge.initialize() via rac_configure_logging.

Properties

configuration LoggingConfiguration
no setter
destinations List<LogDestination>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addDestination(LogDestination destination) → void
applyEnvironmentConfiguration(SDKEnvironment environment) → void
Apply configuration based on SDK environment. Mirrors Swift Logging.applyEnvironmentConfiguration(_:), called at the top of init so logging boots with the correct per-environment config.
configure(LoggingConfiguration config) → void
log({required LogLevel level, required String category, required String message, Map<String, dynamic>? metadata}) → void
Core logging entry point. Mirrors Swift Logging.log(level:category: message:metadata:): (a) gate on minLogLevel from the active configuration, (b) never emit debug/trace records in the production environment (Swift compiles SDKLogger.debug out of release builds via #if DEBUG; Dart gates on the SDK environment instead), (c) print to console only when enableLocalLogging is on, then fan out to every available registered destination.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeDestination(LogDestination destination) → void
setLocalLoggingEnabled(bool enabled) → void
setMinLogLevel(LogLevel level) → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

shared SDKLoggerConfig
final