log_set_level sets the output level for the given logger.
Return Value
bool is TRUE (1) if the function was successful and otherwise FALSE (0).
Parameters
ssLogger is the logger name.
level is the level:
| LOG_TRACE (100) |
| LOG_DEBUG (200) |
| LOG_INFO (300) |
| LOG_WARNING (400) |
| LOG_ERROR (500) |
| LOG_FATAL (600) |
Only log messages which have an equal or higher level will be logged.
Example
// Set all logger to level LOG_ERROR. Only errors and fatal errors will
// be logged.
sv = log_get_logger_names();
for (i in 1:len(sv) {
log_set_level(sv[i], LOG_ERROR);
}
History
| Version | Description |
|---|---|
| 5.0.0 | New |
See also
id-275424