JsonLogFormatter

Name Value
Assembly Catel.Core
Namespace Catel.Logging
Available on .NET Framework 4.5, .NET Framework 4.6
public class JsonLogFormatter : IJsonLogFormatter

Implements interfaces IJsonLogFormatter

The formatter which formats all log info to Json.

Fields

LiteralWriters

The literal writes.

LogEventStrings

The log event strings.

Constructors

Methods

FormatLogEvent(ILog log, string message, LogEvent logEvent, DateTime time)

Formats the log infos.

Parameters

Name Description
log
message
logEvent
time

Returns

Exceptions

Name Description
ArgumentNullException The log isnull.
ArgumentException The message isnull or whitespace.

Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion