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

Method SetTimestampFlag

src/log/proxy-log.hpp:408–423  ·  view source on GitHub ↗

* Flips the timestamp flag. By setting this to false, no timestamps * will be added to log entries. This is useful if log events are * being processed by another log processing which already adds this * information. * * @param tstamp Boolean flag wheter to enable (true) or disable (false) * the log timestamp. */

Source from the content-addressed store, hash-verified

406 * the log timestamp.
407 */
408 void SetTimestampFlag(bool tstamp)
409 {
410 cache_initial_settings();
411 if (!CheckChange(Changed::TSTAMP))
412 {
413 old_tstamp = GetTimestampFlag();
414 }
415
416 if (old_tstamp == tstamp)
417 {
418 return;
419 }
420
421 logservice->SetProperty(logtarget, "timestamp", tstamp);
422 flag_change(Changed::TSTAMP);
423 }
424
425
426 /**

Callers 2

cmd_log_serviceFunction · 0.80
cmd_propsFunction · 0.80

Calls 1

SetPropertyMethod · 0.45

Tested by 1

cmd_propsFunction · 0.64