Property | Type | Description | |
---|---|---|---|
LogThreadFunction | void | ||
addItemToQueue | void | ||
createLog | void |
Method | Description | |
---|---|---|
DatabaseLogger ( string _threadName = "LogThread" ) : System |
Default constructor.
|
|
log ( string _sMsg, eLogType _eltType ) : void |
Main function to be called when logging to database is needed.
|
|
prepForShutdownApp ( ) : void |
Makes the log thread finish up and stop, making sure all logs have been sent to database
|
Method | Description | |
---|---|---|
LogThreadFunction ( ) : void |
Function which will be running in its own thread, continuesly adding logs to database
|
|
addItemToQueue ( Tuple |
Function which adds a tuple to the queue, but at the same time sends event to log thread that another has been added
|
|
createLog ( string _sLog, string _sMsg, System.DateTime _dTime ) : void |
Private helping function to utilize database connection, query and execution
|
public DatabaseLogger ( string _threadName = "LogThread" ) : System | ||
_threadName | string | |
return | System |
public log ( string _sMsg, eLogType _eltType ) : void | ||
_sMsg | string | |
_eltType | eLogType | Type of log |
return | void |