pub fn record_log_with_source(level: &str, source: LogSource, message: String)
Record a log entry with source