C# 클래스 mcp.Logs.Log

파일 보기 프로젝트 열기: MarkPaxton/SensorShare3

Private Properties

프로퍼티 타입 설명
LogSender void
escapeSQL string
escapeString string

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
FireOnLogMessage ( LogMessageEventArgs e ) : void

비공개 메소드들

메소드 설명
LogSender ( object o ) : void
escapeSQL ( string st ) : string
escapeString ( string input ) : string

메소드 상세

Append() 공개 메소드

public Append ( int logLevel, string message ) : void
logLevel int
message string
리턴 void

Append() 공개 메소드

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

Append() 공개 메소드

public Append ( string tags, string message ) : void
tags string
message string
리턴 void

Clear() 공개 메소드

public Clear ( ) : void
리턴 void

FireOnLogMessage() 보호된 메소드

protected FireOnLogMessage ( LogMessageEventArgs e ) : void
e LogMessageEventArgs
리턴 void

IsRunning() 공개 메소드

public IsRunning ( ) : bool
리턴 bool

Log() 공개 메소드

public Log ( ) : System
리턴 System

LogException() 공개 메소드

public LogException ( Exception ex ) : void
ex System.Exception
리턴 void

LogException() 공개 메소드

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

Start() 공개 메소드

public Start ( ) : void
리턴 void

Stop() 공개 메소드

public Stop ( ) : void
리턴 void

WriteToFile() 공개 메소드

public WriteToFile ( string message, int level ) : void
message string
level int
리턴 void

WriteToFile() 공개 메소드

public WriteToFile ( string message, string tags ) : void
message string
tags string
리턴 void

WriteToSQL() 공개 메소드

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

WriteToSQL() 공개 메소드

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

WriteToSQL() 공개 메소드

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

WriteToSQL() 공개 메소드

public WriteToSQL ( string text, string tags, string databaseConnectionString ) : void
text string
tags string
databaseConnectionString string
리턴 void

getLogFile() 공개 메소드

public getLogFile ( string logFile ) : string
logFile string
리턴 string

setLogFile() 공개 메소드

public setLogFile ( string logFile ) : void
logFile string
리턴 void