namespace: etk::log
Description:
enum:
Synopsis:
int32_t registerInstance (const std::string & _name);
void setLevel (const std::string & _name,
enum level _level);
void setLevel (int32_t _id,
enum level _level);
void setLevel (enum level _level);
int32_t getLevel (int32_t _id);
std::vector<std::string> getListInstance ();
void setColor (bool _status);
void setTime (bool _status);
void setLine (bool _status);
void setFunction (bool _status);
void logChar (int32_t _id,
int32_t _level,
int32_t _ligne,
const char* _className,
const char* _funcName,
const char* _log);
void logStream (int32_t _id,
int32_t _level,
int32_t _ligne,
const char* _className,
const char* _funcName,
const std::ostream & _log);
void logChar1 (int32_t _id,
int32_t _level,
const char* _log);
void logStream1 (int32_t _id,
int32_t _level,
const std::ostream & _log);
void displayBacktrace (bool _breakAtEnd,
int32_t _removeElement);
Detail:
registerInstance
int32_t registerInstance (const std::string & _name);
Register an element in the log system
Parameter [input]: | _name | Name of the module |
Return: | | reference Id of an instance name |
setLevel
void setLevel (const std::string & _name,
enum level _level);
void setLevel (int32_t _id,
enum level _level);
Set the log level of a specific instance
setLevel
void setLevel (enum level _level);
Set global debug level
getLevel
int32_t getLevel (int32_t _id);
Get the current level of debug for a specific intance
Parameter [input]: | _id | Id Of the intance |
Return: | | the enum casted in an integer ==> generise the API (not dependent of etk) |
getListInstance
std::vector<std::string> getListInstance ();
Get list of all intance
Return: | | the name list of all intance |
setColor
void setColor (bool _status);
Set Color enable or disable.
Parameter [input]: | _status | New value of color. |
setTime
void setTime (bool _status);
Set Time display enable or disable.
Parameter [input]: | _status | New value. |
setLine
void setLine (bool _status);
Set Line display enable or disable.
Parameter [input]: | _status | New value. |
setFunction
void setFunction (bool _status);
Set Function display enable or disable.
Parameter [input]: | _status | New value. |
logChar
void logChar (int32_t _id,
int32_t _level,
int32_t _ligne,
const char* _className,
const char* _funcName,
const char* _log);
void logStream (int32_t _id,
int32_t _level,
int32_t _ligne,
const char* _className,
const char* _funcName,
const std::ostream & _log);
void logChar1 (int32_t _id,
int32_t _level,
const char* _log);
void logStream1 (int32_t _id,
int32_t _level,
const std::ostream & _log);
Call log to display
Parameter [input]: | _id | Id of the instance type |
Parameter [input]: | _level | Level debug |
Parameter [input]: | _ligne | Line of the debug |
Parameter [input]: | _className | Class name of the debug |
Parameter [input]: | _funcName | Function name for debug |
Parameter [input]: | _log | Stream to log |
displayBacktrace
void displayBacktrace (bool _breakAtEnd,
int32_t _removeElement);
Display the current backtrace