Class SyslogLogProvider
A log provider that sends messages to a syslog server.
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: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class SyslogLogProvider : LogProvider
Constructors
SyslogLogProvider(String)
Creates a new instance of the syslog provider using log level DefaultLogLevel.
Declaration
public SyslogLogProvider(string host)
Parameters
Type | Name | Description |
---|---|---|
System.String | host | The host address of the syslog server. |
SyslogLogProvider(String, LogLevel)
Creates a new instance of the syslog provider.
Declaration
public SyslogLogProvider(string host, LogLevel level)
Parameters
Type | Name | Description |
---|---|---|
System.String | host | The host address of the syslog server. |
LogLevel | level | The log level. |
Methods
DoLog(LogEvent)
Logs a message at the specified log level.
Declaration
protected override void DoLog(LogEvent logEvent)
Parameters
Type | Name | Description |
---|---|---|
LogEvent | logEvent | The log event details. |