log static method
Log a message with custom level. Auto-initializes if needed.
Note: This is synchronous after initialization. For async logging, use the specific level methods like info, error, etc.
Implementation
static Future<void> log(String s, {required LogLevel level, String? category, Map<String, Object>? metadata, String? tag}) async {
await _autoInitialize();
instance._repository.log(s, level: level, category: category, metadata: metadata ?? const {}, tag: tag);
}