Example #1
0
        protected virtual void AddLayer(MCLogEvent e)
        {
            var name = this.Name;

            if (name != null)
            {
                e.Layers.Insert(0, this.Name);
            }
        }
Example #2
0
        private string GetLayerToString(MCLogEvent e)
        {
            var layers = e.Layers;

            if (layers.Count == 0)
            {
                return(string.Empty);
            }
            else
            {
                return(EnumerableUtils.Join(e.Layers, "", o => $"[{o}]") + " ");
            }
        }