C# Class LogentriesCore.Net.AsyncLogger

Afficher le fichier Open project: palette-software/le_dotnet Class Usage Examples

Méthodes publiques

Свойство Type Description
m_Debug bool

Protected Properties

Свойство Type Description
ASCII System.Text.ASCIIEncoding
IsRunning bool
Queue BlockingCollection
Random Random
TrimChars char[]
UTF8 UTF8Encoding
WorkerThread Thread
line_separator string
posix_newline string[]

Méthodes publiques

Méthode Description
AddLine ( string line ) : void
AreAllQueuesEmpty ( System.TimeSpan waitTime ) : bool

Determines if the queue is empty after waiting the specified waitTime. Returns true or false if the underlying queues are empty.

AsyncLogger ( ) : System
IsNullOrWhiteSpace ( String value ) : bool
LoadCredentials ( ) : bool
getAccountKey ( ) : string
getDataHubAddr ( ) : String
getDataHubPort ( ) : int
getDebug ( ) : bool
getHostName ( ) : String
getImmediateFlush ( ) : bool
getIsUsingDataHab ( ) : bool
getLocation ( ) : String
getLogID ( ) : String
getToken ( ) : String
getUseHostName ( ) : bool
getUseHttpPut ( ) : bool
getUseSsl ( ) : bool
interruptWorker ( ) : void
setAccountKey ( String accountKey ) : void
setDataHubAddr ( String dataHubAddr ) : void
setDataHubPort ( int port ) : void
setDebug ( bool debug ) : void
setHostName ( String hostName ) : void
setImmediateFlush ( bool immediateFlush ) : void
setIsUsingDataHub ( bool useDataHub ) : void
setLocation ( String location ) : void
setLogID ( String logID ) : void
setToken ( String token ) : void
setUseHostName ( bool useHostName ) : void
setUseHttpPut ( bool useHttpPut ) : void
setUseSsl ( bool useSsl ) : void

Méthodes protégées

Méthode Description
CloseConnection ( ) : void
GetIsValidGuid ( string guidString ) : bool
OpenConnection ( ) : void
ReopenConnection ( ) : void
Run ( ) : void
WriteDebugMessages ( string message ) : void
WriteDebugMessages ( string message, Exception ex ) : void

Private Methods

Méthode Description
CheckIfHostNameValid ( String hostName ) : bool
retrieveSetting ( String name ) : string

Method Details

AddLine() public méthode

public AddLine ( string line ) : void
line string
Résultat void

AreAllQueuesEmpty() public static méthode

Determines if the queue is empty after waiting the specified waitTime. Returns true or false if the underlying queues are empty.
public static AreAllQueuesEmpty ( System.TimeSpan waitTime ) : bool
waitTime System.TimeSpan The length of time the method should block before giving up waiting for it to empty.
Résultat bool

AsyncLogger() public méthode

public AsyncLogger ( ) : System
Résultat System

CloseConnection() protected méthode

protected CloseConnection ( ) : void
Résultat void

GetIsValidGuid() protected méthode

protected GetIsValidGuid ( string guidString ) : bool
guidString string
Résultat bool

IsNullOrWhiteSpace() public static méthode

public static IsNullOrWhiteSpace ( String value ) : bool
value String
Résultat bool

LoadCredentials() public méthode

public LoadCredentials ( ) : bool
Résultat bool

OpenConnection() protected méthode

protected OpenConnection ( ) : void
Résultat void

ReopenConnection() protected méthode

protected ReopenConnection ( ) : void
Résultat void

Run() protected méthode

protected Run ( ) : void
Résultat void

WriteDebugMessages() protected méthode

protected WriteDebugMessages ( string message ) : void
message string
Résultat void

WriteDebugMessages() protected méthode

protected WriteDebugMessages ( string message, Exception ex ) : void
message string
ex Exception
Résultat void

getAccountKey() public méthode

public getAccountKey ( ) : string
Résultat string

getDataHubAddr() public méthode

public getDataHubAddr ( ) : String
Résultat String

getDataHubPort() public méthode

public getDataHubPort ( ) : int
Résultat int

getDebug() public méthode

public getDebug ( ) : bool
Résultat bool

getHostName() public méthode

public getHostName ( ) : String
Résultat String

getImmediateFlush() public méthode

public getImmediateFlush ( ) : bool
Résultat bool

getIsUsingDataHab() public méthode

public getIsUsingDataHab ( ) : bool
Résultat bool

getLocation() public méthode

public getLocation ( ) : String
Résultat String

getLogID() public méthode

public getLogID ( ) : String
Résultat String

getToken() public méthode

public getToken ( ) : String
Résultat String

getUseHostName() public méthode

public getUseHostName ( ) : bool
Résultat bool

getUseHttpPut() public méthode

public getUseHttpPut ( ) : bool
Résultat bool

getUseSsl() public méthode

public getUseSsl ( ) : bool
Résultat bool

interruptWorker() public méthode

public interruptWorker ( ) : void
Résultat void

setAccountKey() public méthode

public setAccountKey ( String accountKey ) : void
accountKey String
Résultat void

setDataHubAddr() public méthode

public setDataHubAddr ( String dataHubAddr ) : void
dataHubAddr String
Résultat void

setDataHubPort() public méthode

public setDataHubPort ( int port ) : void
port int
Résultat void

setDebug() public méthode

public setDebug ( bool debug ) : void
debug bool
Résultat void

setHostName() public méthode

public setHostName ( String hostName ) : void
hostName String
Résultat void

setImmediateFlush() public méthode

public setImmediateFlush ( bool immediateFlush ) : void
immediateFlush bool
Résultat void

setIsUsingDataHub() public méthode

public setIsUsingDataHub ( bool useDataHub ) : void
useDataHub bool
Résultat void

setLocation() public méthode

public setLocation ( String location ) : void
location String
Résultat void

setLogID() public méthode

public setLogID ( String logID ) : void
logID String
Résultat void

setToken() public méthode

public setToken ( String token ) : void
token String
Résultat void

setUseHostName() public méthode

public setUseHostName ( bool useHostName ) : void
useHostName bool
Résultat void

setUseHttpPut() public méthode

public setUseHttpPut ( bool useHttpPut ) : void
useHttpPut bool
Résultat void

setUseSsl() public méthode

public setUseSsl ( bool useSsl ) : void
useSsl bool
Résultat void

Property Details

ASCII protected_oe static_oe property

protected static ASCIIEncoding,System.Text ASCII
Résultat System.Text.ASCIIEncoding

IsRunning protected_oe property

protected bool IsRunning
Résultat bool

Queue protected_oe property

protected BlockingCollection Queue
Résultat BlockingCollection

Random protected_oe property

protected Random Random
Résultat Random

TrimChars protected_oe static_oe property

protected static char[] TrimChars
Résultat char[]

UTF8 protected_oe static_oe property

protected static UTF8Encoding UTF8
Résultat UTF8Encoding

WorkerThread protected_oe property

protected Thread WorkerThread
Résultat Thread

line_separator protected_oe static_oe property

protected static string line_separator
Résultat string

m_Debug public_oe property

public bool m_Debug
Résultat bool

posix_newline protected_oe static_oe property

protected static string[] posix_newline
Résultat string[]