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
Type Name Description
string name

The librdkafka client instance name.

SyslogLevel level

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

string facility

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

string message

The log message.

Properties

Facility

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

Declaration
public string Facility { get; }
Property Value
Type Description
string

Level

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

Declaration
public SyslogLevel Level { get; }
Property Value
Type Description
SyslogLevel

Message

Gets the log message.

Declaration
public string Message { get; }
Property Value
Type Description
string

Name

Gets the librdkafka client instance name.

Declaration
public string Name { get; }
Property Value
Type Description
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
Type Name Description
LogLevelType type
Returns
Type Description
int
In this article