Свойство | Тип | Описание | |
---|---|---|---|
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 ) : |
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.
|
protected Append ( log4net.Core.LoggingEvent loggingEvent ) : void | ||
loggingEvent | log4net.Core.LoggingEvent | The logging event. |
Результат | void |
protected GetAdditionalFields ( log4net.Core.LoggingEvent loggingEvent ) : string>.Dictionary |
||
loggingEvent | log4net.Core.LoggingEvent | The logging event. |
Результат | string>.Dictionary |
protected GetFullMessage ( log4net.Core.LoggingEvent loggingEvent ) : string | ||
loggingEvent | log4net.Core.LoggingEvent | logging event. |
Результат | string |
protected GetGelfMessage ( log4net.Core.LoggingEvent loggingEvent ) : |
||
loggingEvent | log4net.Core.LoggingEvent | Logging event |
Результат |
protected GetShortMessage ( string fullMessage, log4net.Core.LoggingEvent loggingEvent ) : string | ||
fullMessage | string | The full message. |
loggingEvent | log4net.Core.LoggingEvent | logging event. |
Результат | string |