syslog-ng source
macros.c File Reference
#include "template/macros.h"
#include "template/globals.h"
#include "template/escaping.h"
#include "timeutils/cache.h"
#include "timeutils/names.h"
#include "timeutils/unixtime.h"
#include "timeutils/format.h"
#include "timeutils/misc.h"
#include "timeutils/conv.h"
#include "messages.h"
#include "str-format.h"
#include "run-id.h"
#include "host-id.h"
#include "rcptid.h"
#include "logmsg/logmsg.h"
#include "syslog-names.h"
#include "hostname.h"
#include "template/templates.h"
#include "cfg.h"
#include <string.h>
Include dependency graph for macros.c:

Functions

gboolean log_macro_expand (gint id, LogTemplateEvalOptions *options, const LogMessage *msg, GString *result, LogMessageValueType *type)
 
gboolean log_macro_expand_simple (gint id, const LogMessage *msg, GString *result, LogMessageValueType *type)
 
guint log_macro_lookup (const gchar *macro, gint len)
 
void log_macros_global_init (void)
 
void log_macros_global_deinit (void)
 

Variables

LogMacroDef macros []
 

Function Documentation

◆ log_macro_expand()

gboolean log_macro_expand ( gint  id,
LogTemplateEvalOptions options,
const LogMessage *  msg,
GString *  result,
LogMessageValueType type 
)

◆ log_macro_expand_simple()

gboolean log_macro_expand_simple ( gint  id,
const LogMessage *  msg,
GString *  result,
LogMessageValueType type 
)

◆ log_macro_lookup()

guint log_macro_lookup ( const gchar *  macro,
gint  len 
)

◆ log_macros_global_deinit()

void log_macros_global_deinit ( void  )

◆ log_macros_global_init()

void log_macros_global_init ( void  )

Variable Documentation

◆ macros

LogMacroDef macros[]