Home | History | Annotate | Download | only in examples

Lines Matching refs:log

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