Class SyslogMessage
Represents a UNIX-standard SYSLOG message
Inheritance
System.Object
SyslogMessage
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Log.Syslog
Assembly: Azos.dll
Syntax
public sealed class SyslogMessage
Constructors
SyslogMessage()
Declaration
public SyslogMessage()
SyslogMessage(FacilityLevel, SeverityLevel, String)
Declaration
public SyslogMessage(FacilityLevel facility, SeverityLevel level, string text)
Parameters
| Type | Name | Description |
|---|---|---|
| FacilityLevel | facility | |
| SeverityLevel | level | |
| System.String | text |
SyslogMessage(ILocalizedTimeProvider, Message)
Declaration
public SyslogMessage(ILocalizedTimeProvider timeProvider, Message azoMsg)
Parameters
| Type | Name | Description |
|---|---|---|
| ILocalizedTimeProvider | timeProvider | |
| Message | azoMsg |
Properties
Facility
Declaration
public FacilityLevel Facility { get; set; }
Property Value
| Type | Description |
|---|---|
| FacilityLevel |
LocalTimeStamp
Declaration
public DateTime LocalTimeStamp { get; set; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
Priority
Declaration
public int Priority { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Severity
Declaration
public SeverityLevel Severity { get; set; }
Property Value
| Type | Description |
|---|---|
| SeverityLevel |
Text
Declaration
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
FromAzosLogMessageType(MessageType)
Declaration
public static SeverityLevel FromAzosLogMessageType(MessageType type)
Parameters
| Type | Name | Description |
|---|---|---|
| MessageType | type |
Returns
| Type | Description |
|---|---|
| SeverityLevel |