validate method

void validate()

Validates the logging configuration. Throws an exception if the configuration is invalid.

Implementation

void validate() {
  try {
    // Test minimum level parsing
    minimumLevel;

    // Test default channel
    final channel = defaultChannel;
    if (channel.isEmpty) {
      throw ArgumentError('Default channel cannot be empty');
    }

    // Test channels configuration
    channels;
  } catch (e) {
    throw ArgumentError('Invalid logging configuration: $e');
  }
}