confluent-kafka-dotnet
Show / Hide Table of Contents

Class LogMessage

Encapsulates information provided to the Producer/Consumer OnLog event.

Inheritance
object
LogMessage
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Confluent.Kafka
Assembly: Confluent.Kafka.dll
Syntax
public class LogMessage

Constructors

LogMessage(string, SyslogLevel, string, string)

Instantiates a new LogMessage class instance.

Declaration
public LogMessage(string name, SyslogLevel level, string facility, string message)
Parameters
TypeNameDescription
stringname

The librdkafka client instance name.

SyslogLevellevel

The log level (levels correspond to syslog(3)), lower is worse.

stringfacility

The facility (section of librdkafka code) that produced the message.

stringmessage

The log message.

Properties

Facility

Gets the facility (section of librdkafka code) that produced the message.

Declaration
public string Facility { get; }
Property Value
TypeDescription
string

Level

Gets the log level (levels correspond to syslog(3)), lower is worse.

Declaration
public SyslogLevel Level { get; }
Property Value
TypeDescription
SyslogLevel

Message

Gets the log message.

Declaration
public string Message { get; }
Property Value
TypeDescription
string

Name

Gets the librdkafka client instance name.

Declaration
public string Name { get; }
Property Value
TypeDescription
string

Methods

LevelAs(LogLevelType)

Convert the syslog message severity level to correspond to the values of a different log level enumeration type.

Declaration
public int LevelAs(LogLevelType type)
Parameters
TypeNameDescription
LogLevelTypetype
Returns
TypeDescription
int
In this article