protected virtual void AddLayer(MCLogEvent e) { var name = this.Name; if (name != null) { e.Layers.Insert(0, this.Name); } }
private string GetLayerToString(MCLogEvent e) { var layers = e.Layers; if (layers.Count == 0) { return(string.Empty); } else { return(EnumerableUtils.Join(e.Layers, "", o => $"[{o}]") + " "); } }