C# Class Haukcode.AmqpJsonAppender.AmqpJsonAppender

Inheritance: log4net.Appender.AppenderSkeleton
ファイルを表示 Open project: HakanL/AmqpJsonAppender

Public Properties

Property Type Description
UNKNOWN_HOST string

Private Properties

Property Type Description
AddAdditionalFields void
CreateJsonFromLoggingEvent string
GetIpAddressFromHostName string
GetSequenceNumber long
SendAmqpMessage void
ThreadProc void

Public Methods

Method Description
AmqpJsonAppender ( ) : System

Protected Methods

Method Description
Append ( log4net loggingEvent ) : void

OnClose ( ) : void

Private Methods

Method Description
AddAdditionalFields ( string key, string value, JsonMessage message ) : void

Add

CreateJsonFromLoggingEvent ( log4net loggingEvent, long sequence ) : string
GetIpAddressFromHostName ( ) : string

Get the first IPAddress from the HostName

GetSequenceNumber ( ) : long
SendAmqpMessage ( string message ) : void

Sending the message via AMQP

ThreadProc ( object stateInfo ) : void

Method Details

AmqpJsonAppender() public method

public AmqpJsonAppender ( ) : System
return System

Append() protected method

protected Append ( log4net loggingEvent ) : void
loggingEvent log4net
return void

OnClose() protected method

protected OnClose ( ) : void
return void

Property Details

UNKNOWN_HOST public_oe static_oe property

public static string UNKNOWN_HOST
return string