* Modifies the log level the log service will use for filtering out * log messages. * * @param loglvl Unsigned int of the new log level to use. */
| 363 | * @param loglvl Unsigned int of the new log level to use. |
| 364 | */ |
| 365 | void SetLogLevel(unsigned int loglvl) |
| 366 | { |
| 367 | cache_initial_settings(); |
| 368 | if (!CheckChange(Changed::LOGLEVEL)) |
| 369 | { |
| 370 | old_loglev = GetLogLevel(); |
| 371 | } |
| 372 | |
| 373 | if (old_loglev == loglvl) |
| 374 | { |
| 375 | return; |
| 376 | } |
| 377 | |
| 378 | logservice->SetProperty(logtarget, "log_level", loglvl); |
| 379 | flag_change(Changed::LOGLEVEL); |
| 380 | } |
| 381 | |
| 382 | |
| 383 | /** |
nothing calls this directly
no test coverage detected