Exemplo n.º 1
0
        /// <inheritdoc />
        public string Format(LogLevelName level, List <ILogEntry> entries, IDataRenderer renderer)
        {
            FormatDate(TimeProvider.Now, renderer);
            FormatLevel(level, renderer);

            foreach (var entry in entries)
            {
                FormatEntry(entry, renderer);
                renderer.RenderInvariant(EntrySeparator);
            }
            renderer.RemoveLastCharacter(); // Removes the last separator.

            return(renderer.Render());
        }