public void OnEventLogged(object sender, LogEventArgs e) { lock (List) List.Add(e.LogEntry); lock (ChainedTargets) ChainedTargets.ForEach(target => target.OnEventLogged(sender, e)); }
public void Unchain(ILogTarget target) { lock (ChainedTargets) ChainedTargets.Remove(target); }
public void Chain(ILogTarget target) { lock (ChainedTargets) ChainedTargets.Add(target); }