|
| | SystemLog (std::string logName) |
| | SystemLog constructor. More...
|
| |
| void | setLogLevel (int level) |
| | set system ouput log level More...
|
| |
| void | runTimeError (const char *format,...) |
| | output running error infomation, color: red More...
|
| |
| void | runTimeInfo (const char *format,...) |
| | output running infomation, color: green More...
|
| |
| void | runTimeWarning (const char *format,...) |
| | output running warning infomation, color: yellow More...
|
| |
| void | debugTimeWarning (const char *format,...) |
| | output debug warning infomation, color: cyan More...
|
| |
| void | debugTimeInfo (const char *format,...) |
| | output debug infomation, color: white More...
|
| |
| void | debugTimeError (const char *format,...) |
| | output debug error infomation, color: magenta More...
|
| |
| void | saveLog (void) |
| | save system log to a file, default file name: Running.txt More...
|
| |
| void | saveLogToFile (std::string fileName) |
| | save system log to a designated file More...
|
| |
◆ SystemLog()
| SystemLog::SystemLog |
( |
std::string |
logName | ) |
|
SystemLog constructor.
- Parameters
-
| [in] | logName | the name of special system |
| [out] | None | |
- Returns
- None
- Note
- Attention
- output information starts with "logName"
◆ debugTimeError()
| SystemLog::debugTimeError |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
output debug error infomation, color: magenta
output format [logName][DEBUG_ERROR] info
- Parameters
-
| [in] | format | |
| [in] | ... | |
| [out] | None | |
- Returns
- None
- Note
- Attention
- use it like printf()
◆ debugTimeInfo()
| SystemLog::debugTimeInfo |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
output debug infomation, color: white
output format [logName][DEBUG_INFO] info
- Parameters
-
| [in] | format | |
| [in] | ... | |
| [out] | None | |
- Returns
- None
- Note
- Attention
- use it like printf()
◆ debugTimeWarning()
| SystemLog::debugTimeWarning |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
output debug warning infomation, color: cyan
output format [logName][DEBUG_WARNING] info
- Parameters
-
| [in] | format | |
| [in] | ... | |
| [out] | None | |
- Returns
- None
- Note
- Attention
- use it like printf()
◆ runTimeError()
| SystemLog::runTimeError |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
output running error infomation, color: red
output format [logName][ERROR] info
- Parameters
-
| [in] | format | |
| [in] | ... | |
| [out] | None | |
- Returns
- None
- Note
- Attention
- use it like printf()
◆ runTimeInfo()
| SystemLog::runTimeInfo |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
output running infomation, color: green
output format [logName][INFO] info
- Parameters
-
| [in] | format | |
| [in] | ... | |
| [out] | None | |
- Returns
- None
- Note
- Attention
- use it like printf()
◆ runTimeWarning()
| SystemLog::runTimeWarning |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
output running warning infomation, color: yellow
output format [logName][WARNING] info
- Parameters
-
| [in] | format | |
| [in] | ... | |
| [out] | None | |
- Returns
- None
- Note
- Attention
- use it like printf()
◆ saveLog()
| SystemLog::saveLog |
( |
void |
| ) |
|
save system log to a file, default file name: Running.txt
- Parameters
-
- Returns
- None
- Note
- Attention
- not implement at this version
◆ saveLogToFile()
| SystemLog::saveLogToFile |
( |
std::string |
fileName | ) |
|
save system log to a designated file
- Parameters
-
- Returns
- None
- Note
- Attention
- not implement at this version
◆ setLogLevel()
| SystemLog::setLogLevel |
( |
int |
level | ) |
|
set system ouput log level
log level means that different kind of information will be output
- Parameters
-
| [in] | level | 1 running information output, 2 running and debug infomation output |
| [out] | None | |
- Returns
- None
- Note
- Attention
-
The documentation for this class was generated from the following file: