C# Class mcp.Logs.Log

Mostrar archivo Open project: MarkPaxton/SensorShare3

Private Properties

Property Type Description
LogSender void
escapeSQL string
escapeString string

Public Methods

Method 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

Protected Methods

Method Description
FireOnLogMessage ( LogMessageEventArgs e ) : void

Private Methods

Method Description
LogSender ( object o ) : void
escapeSQL ( string st ) : string
escapeString ( string input ) : string

Method Details

Append() public method

public Append ( int logLevel, string message ) : void
logLevel int
message string
return void

Append() public method

Write a log message to the log file
public Append ( string message ) : void
message string
return void

Append() public method

public Append ( string tags, string message ) : void
tags string
message string
return void

Clear() public method

public Clear ( ) : void
return void

FireOnLogMessage() protected method

protected FireOnLogMessage ( LogMessageEventArgs e ) : void
e LogMessageEventArgs
return void

IsRunning() public method

public IsRunning ( ) : bool
return bool

Log() public method

public Log ( ) : System
return System

LogException() public method

public LogException ( Exception ex ) : void
ex System.Exception
return void

LogException() public method

public LogException ( Exception ex, string text ) : void
ex System.Exception
text string
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

WriteToFile() public method

public WriteToFile ( string message, int level ) : void
message string
level int
return void

WriteToFile() public method

public WriteToFile ( string message, string tags ) : void
message string
tags string
return void

WriteToSQL() public method

public WriteToSQL ( SQLiteConnection database, string text ) : void
database System.Data.SQLite.SQLiteConnection
text string
return void

WriteToSQL() public method

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

WriteToSQL() public method

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

WriteToSQL() public method

public WriteToSQL ( string text, string tags, string databaseConnectionString ) : void
text string
tags string
databaseConnectionString string
return void

getLogFile() public method

public getLogFile ( string logFile ) : string
logFile string
return string

setLogFile() public method

public setLogFile ( string logFile ) : void
logFile string
return void