C# Class csShared.Utils.Logger

Afficher le fichier Open project: TNOCS/csTouch

Méthodes publiques

Méthode Description
GetInstance ( ) : Logger
Log ( string source, string message, string content, Level level, bool showInGUI = false, bool showInEventLog = false ) : void

When logging a message, you can also show it in the GUI by setting showInGUI=true.

StartWork ( ) : void
Stat ( string key, int count = 1 ) : void
StopWork ( ) : void

Private Methods

Méthode Description
BwDoWork ( object sender, DoWorkEventArgs e ) : void
BwstatDoWork ( object sender, DoWorkEventArgs e ) : void
ConvertToEventState ( Level level ) : EventState
ConvertToImageUri ( Level level ) : string
GetWriter ( ) : StreamWriter
Logger ( ) : System
SendData ( ) : void

Method Details

GetInstance() public static méthode

public static GetInstance ( ) : Logger
Résultat Logger

Log() public static méthode

When logging a message, you can also show it in the GUI by setting showInGUI=true.
public static Log ( string source, string message, string content, Level level, bool showInGUI = false, bool showInEventLog = false ) : void
source string
message string
content string
level Level
showInGUI bool
showInEventLog bool
Résultat void

StartWork() public méthode

public StartWork ( ) : void
Résultat void

Stat() public static méthode

public static Stat ( string key, int count = 1 ) : void
key string
count int
Résultat void

StopWork() public méthode

public StopWork ( ) : void
Résultat void