Lines Matching refs:log
29 gzlog_write() now always leaves the log file as valid gzip
33 The gzlog object allows writing short messages to a gzipped log file,
34 opening the log file locked for small bursts, and then closing it. The log
37 replaces the uncompressed data in the file. The log file is truncated to
38 its new size at that time. After each write operation, the log file is a
42 system crash, and the log file will be recovered the next time the log is
52 /* Open a gzlog object, creating the log file if it does not exist. Return
57 this object. If path is "foo", then the log file will be "foo.gz", and
61 lock file, and "foo.repairs" to log recovery operations performed due to
70 a memory allocation failure, or -3 if the log argument is invalid (e.g. if
73 will be compressed. The log file will be a valid gzip file upon successful
75 int gzlog_write(gzlog *log, void *data, size_t len);
77 /* Force compression of any uncompressed data in the log. This should be used
78 sparingly, if at all. The main application would be when a log file will
83 int gzlog_compress(gzlog *log);
85 /* Close a gzlog object. Return zero on success, -3 if the log argument is
86 invalid. The log object is freed, and so cannot be referenced again. */
87 int gzlog_close(gzlog *log);