public void Log(LogLevel level, string message) { var entry = new LogEntry(DateTime.UtcNow, this.name, level, Environment.CurrentManagedThreadId, message); this.owner.entries.OnNext(entry); }
private void Log(LogLevel level, string message) { message.AssertNotNull(nameof(message)); if (!this.owner.IsLevelEnabled(level)) { return; } var entry = new LogEntry(DateTime.UtcNow, this.name, level, Environment.CurrentManagedThreadId, message); this.owner.entries.OnNext(entry); }