RemoteSyslogAppender GeneratePriority Method | Apache log4net™ SDK Documentation

Generate a syslog priority.

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public static int GeneratePriority(
    	RemoteSyslogAppenderSyslogFacility facility,
    	RemoteSyslogAppenderSyslogSeverity severity
    )

    Public Shared Function GeneratePriority (
    	facility As RemoteSyslogAppenderSyslogFacility,
    	severity As RemoteSyslogAppenderSyslogSeverity
    ) As Integer

    public:
    static int GeneratePriority(
    	RemoteSyslogAppenderSyslogFacility facility,
    	RemoteSyslogAppenderSyslogSeverity severity
    )

    static member GeneratePriority :
            facility : RemoteSyslogAppenderSyslogFacility *
            severity : RemoteSyslogAppenderSyslogSeverity -> int

#### Parameters

facility
  Type: log4net.Appender
  RemoteSyslogAppender
  SyslogFacility
  The syslog facility.
severity
  Type: log4net.Appender
  RemoteSyslogAppender
  SyslogSeverity
  The syslog severity.

#### Return Value

Type: Int32
A syslog priority.
Remarks

Generate a syslog priority.

See Also

#### Reference

RemoteSyslogAppender Class
log4net.Appender Namespace