C# Class GuaranteedRate.Sextant.Loggers.Loggly

This is a minimal class to aysnchronously push data to loggly. It has a basic set of log4net style methods. We can expand if find them to be useful NOTE: Because of how Loggly does tagging, you must set the url and tags BEFORE you start logging events
Inheritance: GuaranteedRate.Sextant.WebClients.AsyncEventReporter
Afficher le fichier Open project: Guaranteed-Rate/GuaranteedRate.Sextant

Méthodes publiques

Свойство Type Description
LOGGLY_ALL string
LOGGLY_DEBUG string
LOGGLY_ERROR string
LOGGLY_FATAL string
LOGGLY_INFO string
LOGGLY_TAGS string
LOGGLY_URL string
LOGGLY_WARN string

Méthodes publiques

Méthode Description
AddTag ( string tag ) : void

Tags must be added BEFORE anything is logged. Once the first event is logged, the tags are locked

Debug ( string loggerName, string>.IDictionary fields ) : void
Debug ( string loggerName, string message ) : void
Error ( string loggerName, string>.IDictionary fields ) : void
Error ( string loggerName, string message ) : void
Fatal ( string loggerName, string>.IDictionary fields ) : void
Fatal ( string loggerName, string message ) : void
Info ( string loggerName, string>.IDictionary fields ) : void
Info ( string loggerName, string message ) : void
Init ( Session session, IEncompassConfig config, ICollection tags = null ) : void

Initializes the loggly logger

Log ( string>.IDictionary fields, string loggerName, string level ) : void
SetPostUrl ( string url ) : void
SetSize ( int queueSize ) : void
Warn ( string loggerName, string>.IDictionary fields ) : void
Warn ( string loggerName, string message ) : void

Private Methods

Méthode Description
LogDebug ( ) : bool
LogError ( ) : bool
LogFatal ( ) : bool
LogInfo ( ) : bool
LogWarn ( ) : bool
Loggly ( string url, int queueSize = DEFAULT_QUEUE_SIZE ) : EllieMae.Encompass.Client
MakeTagCsv ( ) : string
PopulateEvent ( string>.IDictionary fields, string loggerName, string level ) : void

Method Details

AddTag() public static méthode

Tags must be added BEFORE anything is logged. Once the first event is logged, the tags are locked
public static AddTag ( string tag ) : void
tag string
Résultat void

Debug() public static méthode

public static Debug ( string loggerName, string>.IDictionary fields ) : void
loggerName string
fields string>.IDictionary
Résultat void

Debug() public static méthode

public static Debug ( string loggerName, string message ) : void
loggerName string
message string
Résultat void

Error() public static méthode

public static Error ( string loggerName, string>.IDictionary fields ) : void
loggerName string
fields string>.IDictionary
Résultat void

Error() public static méthode

public static Error ( string loggerName, string message ) : void
loggerName string
message string
Résultat void

Fatal() public static méthode

public static Fatal ( string loggerName, string>.IDictionary fields ) : void
loggerName string
fields string>.IDictionary
Résultat void

Fatal() public static méthode

public static Fatal ( string loggerName, string message ) : void
loggerName string
message string
Résultat void

Info() public static méthode

public static Info ( string loggerName, string>.IDictionary fields ) : void
loggerName string
fields string>.IDictionary
Résultat void

Info() public static méthode

public static Info ( string loggerName, string message ) : void
loggerName string
message string
Résultat void

Init() public static méthode

Initializes the loggly logger
public static Init ( Session session, IEncompassConfig config, ICollection tags = null ) : void
session Session Current encompass session, used to load the config file
config IEncompassConfig Config file to load. Will re-initialize when this is used.
tags ICollection Collection of loggly tags. If null, we will load the Loggly.Tags element from the config.
Résultat void

Log() public static méthode

public static Log ( string>.IDictionary fields, string loggerName, string level ) : void
fields string>.IDictionary
loggerName string
level string
Résultat void

SetPostUrl() public static méthode

public static SetPostUrl ( string url ) : void
url string
Résultat void

SetSize() public static méthode

public static SetSize ( int queueSize ) : void
queueSize int
Résultat void

Warn() public static méthode

public static Warn ( string loggerName, string>.IDictionary fields ) : void
loggerName string
fields string>.IDictionary
Résultat void

Warn() public static méthode

public static Warn ( string loggerName, string message ) : void
loggerName string
message string
Résultat void

Property Details

LOGGLY_ALL public_oe static_oe property

public static string LOGGLY_ALL
Résultat string

LOGGLY_DEBUG public_oe static_oe property

public static string LOGGLY_DEBUG
Résultat string

LOGGLY_ERROR public_oe static_oe property

public static string LOGGLY_ERROR
Résultat string

LOGGLY_FATAL public_oe static_oe property

public static string LOGGLY_FATAL
Résultat string

LOGGLY_INFO public_oe static_oe property

public static string LOGGLY_INFO
Résultat string

LOGGLY_TAGS public_oe static_oe property

public static string LOGGLY_TAGS
Résultat string

LOGGLY_URL public_oe static_oe property

public static string LOGGLY_URL
Résultat string

LOGGLY_WARN public_oe static_oe property

public static string LOGGLY_WARN
Résultat string