Class LogMessage
Encapsulates information provided to the Producer/Consumer OnLog event.
Inheritance
System.Object
LogMessage
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Confluent.Kafka
Assembly: cs.temp.dll.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 |
---|---|---|
System.String | name | The librdkafka client instance name. |
SyslogLevel | level | The log level (levels correspond to syslog(3)), lower is worse. |
System.String | facility | The facility (section of librdkafka code) that produced the message. |
System.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 |
---|---|
System.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 |
---|---|
System.String |
Name
Gets the librdkafka client instance name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.Int32 |