[syslog-ng] [PATCH] templates: Add a C_* family of timestamp macros.

Balazs Scheidler bazsi at balabit.hu
Mon Aug 29 13:08:46 CEST 2011


Thanks, applied to 3.4.

On Tue, 2011-08-23 at 14:58 +0200, Gergely Nagy wrote:
> The C_* family of timestamp macros work very similarly to R_
> (received) and S_ (stamp), except C_ uses the current system time as
> of the macro expansion.
> 
> The patch below uses cached_g_current_time() for performance reasons,
> but in case the minor caching is undesired, it's easy to convert to
> something else.
> 
> Signed-off-by: Gergely Nagy <algernon at balabit.hu>
> ---
>  lib/templates.c |   39 +++++++++++++++++++++++++++++++++++++--
>  1 files changed, 37 insertions(+), 2 deletions(-)

-- 
Bazsi




More information about the syslog-ng mailing list