Свойство | Type | Description | |
---|---|---|---|
UNKNOWN_HOST | string |
Méthode | Description | |
---|---|---|
ActivateOptions ( ) : void |
The activate options.
|
|
Gelf4NetAppender ( ) : System |
Initializes a new instance of the Gelf4NetAppender class.
|
Méthode | Description | |
---|---|---|
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.
|
Méthode | Description | |
---|---|---|
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. |
Résultat | void |
protected GetAdditionalFields ( log4net.Core.LoggingEvent loggingEvent ) : string>.Dictionary |
||
loggingEvent | log4net.Core.LoggingEvent | The logging event. |
Résultat | string>.Dictionary |
protected GetFullMessage ( log4net.Core.LoggingEvent loggingEvent ) : string | ||
loggingEvent | log4net.Core.LoggingEvent | logging event. |
Résultat | string |
protected GetGelfMessage ( log4net.Core.LoggingEvent loggingEvent ) : |
||
loggingEvent | log4net.Core.LoggingEvent | Logging event |
Résultat |
protected GetShortMessage ( string fullMessage, log4net.Core.LoggingEvent loggingEvent ) : string | ||
fullMessage | string | The full message. |
loggingEvent | log4net.Core.LoggingEvent | logging event. |
Résultat | string |