C# Class mcp.Logs.Log

Afficher le fichier Open project: MarkPaxton/SensorShare3

Private Properties

Свойство Type Description
LogSender void
escapeSQL string
escapeString string

Méthodes publiques

Méthode Description
Append ( int logLevel, string message ) : void
Append ( string message ) : void

Write a log message to the log file

Append ( string tags, string message ) : void
Clear ( ) : void
IsRunning ( ) : bool
Log ( ) : System
LogException ( Exception ex ) : void
LogException ( Exception ex, string text ) : void
Start ( ) : void
Stop ( ) : void
WriteToFile ( string message, int level ) : void
WriteToFile ( string message, string tags ) : void
WriteToSQL ( SQLiteConnection database, string text ) : void
WriteToSQL ( string message, int level, SQLiteConnection connection ) : void
WriteToSQL ( string text, string tags, SQLiteConnection database ) : void
WriteToSQL ( string text, string tags, string databaseConnectionString ) : void
getLogFile ( string logFile ) : string
setLogFile ( string logFile ) : void

Méthodes protégées

Méthode Description
FireOnLogMessage ( LogMessageEventArgs e ) : void

Private Methods

Méthode Description
LogSender ( object o ) : void
escapeSQL ( string st ) : string
escapeString ( string input ) : string

Method Details

Append() public méthode

public Append ( int logLevel, string message ) : void
logLevel int
message string
Résultat void

Append() public méthode

Write a log message to the log file
public Append ( string message ) : void
message string
Résultat void

Append() public méthode

public Append ( string tags, string message ) : void
tags string
message string
Résultat void

Clear() public méthode

public Clear ( ) : void
Résultat void

FireOnLogMessage() protected méthode

protected FireOnLogMessage ( LogMessageEventArgs e ) : void
e LogMessageEventArgs
Résultat void

IsRunning() public méthode

public IsRunning ( ) : bool
Résultat bool

Log() public méthode

public Log ( ) : System
Résultat System

LogException() public méthode

public LogException ( Exception ex ) : void
ex System.Exception
Résultat void

LogException() public méthode

public LogException ( Exception ex, string text ) : void
ex System.Exception
text string
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

WriteToFile() public méthode

public WriteToFile ( string message, int level ) : void
message string
level int
Résultat void

WriteToFile() public méthode

public WriteToFile ( string message, string tags ) : void
message string
tags string
Résultat void

WriteToSQL() public méthode

public WriteToSQL ( SQLiteConnection database, string text ) : void
database System.Data.SQLite.SQLiteConnection
text string
Résultat void

WriteToSQL() public méthode

public WriteToSQL ( string message, int level, SQLiteConnection connection ) : void
message string
level int
connection System.Data.SQLite.SQLiteConnection
Résultat void

WriteToSQL() public méthode

public WriteToSQL ( string text, string tags, SQLiteConnection database ) : void
text string
tags string
database System.Data.SQLite.SQLiteConnection
Résultat void

WriteToSQL() public méthode

public WriteToSQL ( string text, string tags, string databaseConnectionString ) : void
text string
tags string
databaseConnectionString string
Résultat void

getLogFile() public méthode

public getLogFile ( string logFile ) : string
logFile string
Résultat string

setLogFile() public méthode

public setLogFile ( string logFile ) : void
logFile string
Résultat void