Class LogCapture.Message
Information about a captured log message.
Inheritance
System.Object
LogCapture.Message
Namespace: LaunchDarkly.Logging
Assembly: LaunchDarkly.Logging.dll
Syntax
public sealed class Message : ValueType
Constructors
Message(String, LogLevel, String)
Constructs a new instance.
Declaration
public Message(string loggerName, LogLevel level, string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | loggerName | the name of the logger that produced the message |
LogLevel | level | the log level of the message |
System.String | text | the text of the message, after any parameters have been substituted |
Properties
Level
The log level of the message.
Declaration
public LogLevel Level { get; }
Property Value
Type | Description |
---|---|
LogLevel |
LoggerName
The name of the logger that produced the message.
Declaration
public string LoggerName { get; }
Property Value
Type | Description |
---|---|
System.String |
Text
The text of the message, after any parameters have been substituted.
Declaration
public string Text { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
ToString()
Summarizes the message in the format "[LoggerName] LEVEL: text".
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | a descriptive string |