summaryrefslogtreecommitdiffabout
path: root/src/vmod-binlog.h
Side-by-side diff
Diffstat (limited to 'src/vmod-binlog.h') (more/less context) (show whitespace changes)
-rw-r--r--src/vmod-binlog.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/vmod-binlog.h b/src/vmod-binlog.h
index 06d517d..e39ccea 100644
--- a/src/vmod-binlog.h
+++ b/src/vmod-binlog.h
@@ -21,23 +21,39 @@
#ifndef BINLOG_SIZE
# define BINLOG_SIZE (1024*1024*1024)
#endif
#ifndef BINLOG_PATTERN
-# define BINLOG_PATTERN "%Y/%m/%d.log"
+# define BINLOG_PATTERN "%Y%m%dT%H%M%S.log"
+#endif
+
+#ifndef BINLOG_GLOB_PATTERN
+# define BINLOG_GLOB_PATTERN "[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]T[0-9][0-9][0-9][0-9][0-9][0-9].log"
+#endif
+
+#ifndef BINLOG_INDEX
+# define BINLOG_INDEX "year"
#endif
#ifndef BINLOG_INTERVAL
# define BINLOG_INTERVAL 86400
#endif
#ifndef BINLOG_UMASK
# define BINLOG_UMASK 0077
#endif
+enum binlog_index_type {
+ index_year,
+ index_month,
+ index_day,
+
+};
+#define index_last index_day
+
struct binlog_record {
time_t ts; /* timestamp */
char data[1]; /* payload */
};
#define BINLOG_MAGIC_STR "NXCBINLOG"

Return to:

Send suggestions and report system problems to the System administrator.