MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3-linux / SetLogLevel

Method SetLogLevel

src/log/proxy-log.hpp:365–380  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

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 /**

Callers

nothing calls this directly

Calls 1

SetPropertyMethod · 0.45

Tested by

no test coverage detected