public LogMessage(CollieLogSeverity severity, string source, string message, Exception exception = null) { Severity = severity; Source = source; Message = message; Exception = exception; }
public async Task LogAsync(CollieLogSeverity severity, string source, string message, Exception ex = null) { try { if (severity <= Level) { await _messageEvent.InvokeAsync(new LogMessage(severity, source, message, ex)).ConfigureAwait(false); } } catch { } }
public Task LogAsync(CollieLogSeverity severity, string message, Exception exception = null) => _manager.LogAsync(severity, Name, message, exception);
public LogManager(CollieLogSeverity minSeverity) { Level = minSeverity; _logger = new Logger(this, "Github"); }