diff options
Diffstat (limited to 'runtime/msg.h')
-rw-r--r-- | runtime/msg.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/msg.h b/runtime/msg.h index 1bad9c66..9d4753a8 100644 --- a/runtime/msg.h +++ b/runtime/msg.h @@ -104,6 +104,7 @@ short bDoLock; /* use the mutex? */ char *pszRcvdAt3164; /* time as RFC3164 formatted string (always 15 charcters) */ char *pszRcvdAt3339; /* time as RFC3164 formatted string (32 charcters at most) */ char *pszRcvdAt_SecFrac;/* time just as fractional seconds (6 charcters) */ + char *pszRcvdAt_Strftime;/* time as user-defined arbitrary format */ char *pszRcvdAt_MySQL; /* rcvdAt as MySQL formatted string (always 14 charcters) */ char *pszRcvdAt_PgSQL; /* rcvdAt as PgSQL formatted string (always 21 characters) */ struct syslogTime tTIMESTAMP;/* (parsed) value of the timestamp */ @@ -112,6 +113,7 @@ short bDoLock; /* use the mutex? */ char *pszTIMESTAMP_MySQL;/* TIMESTAMP as MySQL formatted string (always 14 charcters) */ char *pszTIMESTAMP_PgSQL;/* TIMESTAMP as PgSQL formatted string (always 21 characters) */ char *pszTIMESTAMP_SecFrac;/* TIMESTAMP fractional seconds (always 6 characters) */ + char *pszTIMESTAMP_Strftime;/* TIMESTAMP arbitrary format */ int msgFlags; /* flags associated with this message */ }; @@ -132,8 +134,8 @@ char *getUxTradMsg(msg_t *pM); char *getMSG(msg_t *pM); char *getPRI(msg_t *pM); int getPRIi(msg_t *pM); -char *getTimeReported(msg_t *pM, enum tplFormatTypes eFmt); -char *getTimeGenerated(msg_t *pM, enum tplFormatTypes eFmt); +char *getTimeReported(msg_t *pM, enum tplFormatTypes eFmt, const char *sfmt); +char *getTimeGenerated(msg_t *pM, enum tplFormatTypes eFmt, const char *sfmt); char *getSeverity(msg_t *pM); char *getSeverityStr(msg_t *pM); char *getFacility(msg_t *pM); |