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
@@ -21,23 +21,39 @@
21 21
22#ifndef BINLOG_SIZE 22#ifndef BINLOG_SIZE
23# define BINLOG_SIZE (1024*1024*1024) 23# define BINLOG_SIZE (1024*1024*1024)
24#endif 24#endif
25 25
26#ifndef BINLOG_PATTERN 26#ifndef BINLOG_PATTERN
27# define BINLOG_PATTERN "%Y/%m/%d.log" 27# define BINLOG_PATTERN "%Y%m%dT%H%M%S.log"
28#endif
29
30#ifndef BINLOG_GLOB_PATTERN
31# 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"
32#endif
33
34#ifndef BINLOG_INDEX
35# define BINLOG_INDEX "year"
28#endif 36#endif
29 37
30#ifndef BINLOG_INTERVAL 38#ifndef BINLOG_INTERVAL
31# define BINLOG_INTERVAL 86400 39# define BINLOG_INTERVAL 86400
32#endif 40#endif
33 41
34#ifndef BINLOG_UMASK 42#ifndef BINLOG_UMASK
35# define BINLOG_UMASK 0077 43# define BINLOG_UMASK 0077
36#endif 44#endif
37 45
46enum binlog_index_type {
47 index_year,
48 index_month,
49 index_day,
50
51};
52#define index_last index_day
53
38struct binlog_record { 54struct binlog_record {
39 time_t ts; /* timestamp */ 55 time_t ts; /* timestamp */
40 char data[1]; /* payload */ 56 char data[1]; /* payload */
41}; 57};
42 58
43#define BINLOG_MAGIC_STR "NXCBINLOG" 59#define BINLOG_MAGIC_STR "NXCBINLOG"

Return to:

Send suggestions and report system problems to the System administrator.