aboutsummaryrefslogtreecommitdiff
path: root/src/vmod-binlog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vmod-binlog.h')
-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
@@ -24,7 +24,15 @@
#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
@@ -35,6 +43,14 @@
# 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 */

Return to:

Send suggestions and report system problems to the System administrator.