C# Класс Esilog.Gelf4net.Appender.Gelf4NetAppender

The gelf 4 net appender.
Наследование: log4net.Appender.AppenderSkeleton
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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