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