LogEntry.LogEntry

LogEntry()

Initialize a new instance of a LogEntry class.

public LogEntry()

See Also


LogEntry(string)

Initialize a new instance of a LogEntry class.

public LogEntry(string message)
ParameterTypeDescription
messageStringThe message.

See Also


LogEntry(string, DateTime)

Initialize a new instance of a LogEntry class.

public LogEntry(string message, DateTime time)
ParameterTypeDescription
messageStringThe message.
timeDateTimeThe time.

See Also


LogEntry(string, Exception)

Initialize a new instance of a LogEntry class.

public LogEntry(string message, Exception innerException)
ParameterTypeDescription
messageStringMessage body to log. Value from ToString() method from message object.
innerExceptionExceptionThe inner exception to log.

See Also


LogEntry(string, LogLevel)

Initialize a new instance of a LogEntry class.

public LogEntry(string message, LogLevel severity)
ParameterTypeDescription
messageStringMessage body to log. Value from ToString() method from message object.
severityLogLevelLog entry severity as a Severity enumeration. (Unspecified, Information, Warning or Error).

See Also


LogEntry(string, Exception, LogLevel)

Initialize a new instance of a LogEntry class.

public LogEntry(string message, Exception innerException, LogLevel severity)
ParameterTypeDescription
messageStringMessage body to log. Value from ToString() method from message object.
innerExceptionExceptionThe inner exception to log.
severityLogLevelLog entry severity as a Severity enumeration. (Unspecified, Information, Warning or Error).

See Also


LogEntry(string, IDictionary<string, string>)

Create a new instance of LogEntry with a full set of constructor parameters

public LogEntry(string message, IDictionary<string, string> properties)
ParameterTypeDescription
messageStringMessage body to log. Value from ToString() method from message object.
propertiesIDictionary`2Dictionary of key/value pairs to record.

See Also


LogEntry(byte[])

Create a new instance of LogEntry with a full set of constructor parameters

public LogEntry(byte[] binaryDataMessage)
ParameterTypeDescription
binaryDataMessageByte[]Binary message body to log.

See Also


LogEntry(byte[], Encoding)

Create a new instance of LogEntry with a full set of constructor parameters

public LogEntry(byte[] binaryDataMessage, Encoding messageEncoding)
ParameterTypeDescription
binaryDataMessageByte[]Binary message body to log.
messageEncodingEncodingEncoding for binary message

See Also


LogEntry(byte[], IDictionary<string, string>)

Create a new instance of LogEntry with a full set of constructor parameters

public LogEntry(byte[] binaryDataMessage, IDictionary<string, string> properties)
ParameterTypeDescription
binaryDataMessageByte[]Binary message body to log.
propertiesIDictionary`2Dictionary of key/value pairs to record.

See Also


LogEntry(byte[], Encoding, IDictionary<string, string>)

Create a new instance of LogEntry with a full set of constructor parameters

public LogEntry(byte[] binaryDataMessage, Encoding messageEncoding, 
    IDictionary<string, string> properties)
ParameterTypeDescription
binaryDataMessageByte[]Binary message body to log.
messageEncodingEncodingEncoding for binary message
propertiesIDictionary`2Dictionary of key/value pairs to record.

See Also


LogEntry(string, LogLevel, string, int, string, IDictionary<string, string>)

Create a new instance of LogEntry with a full set of constructor parameters

public LogEntry(string message, LogLevel severity, string category, int eventId, string title, 
    IDictionary<string, string> properties)
ParameterTypeDescription
messageStringMessage body to log. Value from ToString() method from message object.
severityLogLevelLog entry severity as a Severity enumeration. (Unspecified, Information, Warning or Error).
categoryStringCategory name used to route the log entry to a one or more sinks.
eventIdInt32Event number or identifier.
titleStringAdditional description of the log entry message.
propertiesIDictionary`2Dictionary of key/value pairs to record.

See Also


LogEntry(string, Exception, LogLevel, string, int, string, IDictionary<string, string>)

Create a new instance of LogEntry with a full set of constructor parameters

public LogEntry(string message, Exception innerException, LogLevel severity, string category, 
    int eventId, string title, IDictionary<string, string> properties)
ParameterTypeDescription
messageStringMessage body to log. Value from ToString() method from message object.
innerExceptionExceptionThe inner exception to log.
severityLogLevelLog entry severity as a Severity enumeration. (Unspecified, Information, Warning or Error).
categoryStringCategory name used to route the log entry to a one or more sinks.
eventIdInt32Event number or identifier.
titleStringAdditional description of the log entry message.
propertiesIDictionary`2Dictionary of key/value pairs to record.

See Also