#include <log.hh>
Public Member Functions | |
| Log (int verbose_level=1, const char *suffix=NULL) | |
| void | setVerboseLevel (int level) |
| Enable the specified level of verbosity. | |
| void | setVerboseMask (int mask) |
| Directly change the verbosity mask. | |
| void | setModuleSuffix (const char *name) |
| Set a string to display right after module name, into the braces. | |
| void | setPrintLoc (bool enable=true) |
| Print line number and file name to easily find the LOG macro. | |
| void | setUseColor (bool enable=true) |
| Enable or disable color (by default use them). | |
| std::ostream & | getStream () |
| Used internally. | |
Static Public Member Functions | |
| static Log * | getInst () |
| Used internally. | |
Public Attributes | |
| int | verbose_mask_ |
| bool | print_loc_ |
| bool | use_color_ |
| char | modsuffix_ [64] |
Static Public Attributes | |
| static pthread_mutex_t | lock_ |
| void Log::setModuleSuffix | ( | const char * | name | ) |
Set a string to display right after module name, into the braces.
| name | Set it to NULL if you don't want a suffix. |
| void Log::setVerboseLevel | ( | int | level | ) |
Enable the specified level of verbosity.
| level | Activate all levels from 0 up to level (0-31). |
| void Log::setVerboseMask | ( | int | mask | ) |
Directly change the verbosity mask.
| mask | The mask to apply (eg: 0x06 activate level 1 and 2, but not level 0). |
setVerboseLevel is fine.
1.4.7