environmentLoggingListener top-level property

Obs<Map<LogLevel, String>> environmentLoggingListener
final

A reactive listener that holds environment-specific logging configuration.

This listener tracks a mapping of LogLevels to string values, typically representing log output destinations or formatting rules. It allows dynamic observation of logging settings within the environment context, enabling other parts of the system to respond when logging configuration changes.

Example

// Update the logging configuration at runtime
environmentLoggingListener.value = {
  LogLevel.info: 'stdout',
  LogLevel.error: 'stderr',
};

// Observe changes to logging configuration
environmentLoggingListener.listen((config) {
  print('Logging updated: $config');
});

Implementation

final environmentLoggingListener = Obs<Map<LogLevel, String>>({});