C# 클래스 Esilog.Gelf4net.Appender.Gelf4NetAppender

The gelf 4 net appender.
상속: log4net.Appender.AppenderSkeleton
파일 보기 프로젝트 열기: visit/gelf4net 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
UNKNOWN_HOST string

공개 메소드들

메소드 설명
ActivateOptions ( ) : void

The activate options.

Gelf4NetAppender ( ) : System

Initializes a new instance of the Gelf4NetAppender class.

보호된 메소드들

메소드 설명
Append ( log4net.Core.LoggingEvent loggingEvent ) : void

Append a log event on graylog.

GetAdditionalFields ( log4net.Core.LoggingEvent loggingEvent ) : string>.Dictionary

The additional fields. Concate the additional fields specified in log4net config (AdditionalFields) and the LoggingEvent.Properties

GetFullMessage ( log4net.Core.LoggingEvent loggingEvent ) : string

Get full message. If a Layout was defined, the full message will use that. Append the log exception and stacktrace if LogStackTraceFromMessage is true.

GetGelfMessage ( log4net.Core.LoggingEvent loggingEvent ) : GelfMessage

Get a GelfMessage with info about logging event.

GetShortMessage ( string fullMessage, log4net.Core.LoggingEvent loggingEvent ) : string

Short message. Truncate the message to 250 character.

비공개 메소드들

메소드 설명
GetIpAddressFromHostName ( ) : string

Get ip address from host name.

GetLoggingHostName ( ) : string

Get logging host name.

GetSyslogSeverity ( log4net.Core.Level level ) : int

Get syslog severity.

SendGelfMessageToGrayLog ( string message ) : void

Send gelf message to graylog.

메소드 상세

ActivateOptions() 공개 메소드

The activate options.
public ActivateOptions ( ) : void
리턴 void

Append() 보호된 메소드

Append a log event on graylog.
protected Append ( log4net.Core.LoggingEvent loggingEvent ) : void
loggingEvent log4net.Core.LoggingEvent The logging event.
리턴 void

Gelf4NetAppender() 공개 메소드

Initializes a new instance of the Gelf4NetAppender class.
public Gelf4NetAppender ( ) : System
리턴 System

GetAdditionalFields() 보호된 메소드

The additional fields. Concate the additional fields specified in log4net config (AdditionalFields) and the LoggingEvent.Properties
protected GetAdditionalFields ( log4net.Core.LoggingEvent loggingEvent ) : string>.Dictionary
loggingEvent log4net.Core.LoggingEvent The logging event.
리턴 string>.Dictionary

GetFullMessage() 보호된 메소드

Get full message. If a Layout was defined, the full message will use that. Append the log exception and stacktrace if LogStackTraceFromMessage is true.
protected GetFullMessage ( log4net.Core.LoggingEvent loggingEvent ) : string
loggingEvent log4net.Core.LoggingEvent logging event.
리턴 string

GetGelfMessage() 보호된 메소드

Get a GelfMessage with info about logging event.
protected GetGelfMessage ( log4net.Core.LoggingEvent loggingEvent ) : GelfMessage
loggingEvent log4net.Core.LoggingEvent Logging event
리턴 GelfMessage

GetShortMessage() 보호된 메소드

Short message. Truncate the message to 250 character.
protected GetShortMessage ( string fullMessage, log4net.Core.LoggingEvent loggingEvent ) : string
fullMessage string The full message.
loggingEvent log4net.Core.LoggingEvent logging event.
리턴 string

프로퍼티 상세

UNKNOWN_HOST 공개적으로 정적으로 프로퍼티

The unknown host.
public static string UNKNOWN_HOST
리턴 string