示例#1
0
        /// <inheritdoc />
        public override int Render(LogEvent logEvent)
        {
            var moniker = LevelOutputFormat.GetLevelMoniker(logEvent.Level, _levelToken.Format);

            if (!Levels.TryGetValue(logEvent.Level, out var levelStyle))
            {
                levelStyle = ConsoleThemeStyle.Invalid;
            }

            var _ = 0;

            //todo something


            return(_);
        }
示例#2
0
 /// <summary>
 /// This method will apply only upper or lower case formatting, not fixed width
 /// </summary>
 public override void Render(TextWriter output, string format = null, IFormatProvider formatProvider = null)
 {
     output.Write(LevelOutputFormat.GetLevelMoniker(_value, format));
 }