Please note that facility values local0
thru local7
are not explicitly defined in Rebex Syslog API currently. However, you can specify any value between 0 and 255 for facility in the API like this:
var client = new SyslogClient();
client.Connect(...);
client.Send(message, SyslogSeverity.Notice, (SyslogFacility)20);
In RFC 5424 the values for local0
thru local7
are defined as follows:
16 - local use 0 (local0)
17 - local use 1 (local1)
18 - local use 2 (local2)
19 - local use 3 (local3)
20 - local use 4 (local4)
21 - local use 5 (local5)
22 - local use 6 (local6)
23 - local use 7 (local7)
So, in the example above, the (SyslogFacility)20
means local4
.