13 ventilogging \- Venti logs
24 VtLog* vtlogopen(char *name, uint size);
27 void vtlogprint(VtLog *log, char *fmt, ...);
30 void vtlogclose(VtLog *log);
33 void vtlog(char *name, char *fmt, ...);
36 void vtlogremove(char *name);
39 char** vtlognames(int *n);
42 void vtlogdump(int fd, VtLog *log);
45 extern int ventilogging; /* default 0 */
48 extern char *VtServerLog; /* "libventi/server" */
50 These routines provide an in-memory circular log
51 structure used by the Venti library and the Venti server
52 to record events for debugging purposes.
53 The logs are named by UTF strings.
56 returns a reference to the log with the given
58 If a log with that name does not exist and
62 creates a new log capable of holding at
67 releases the reference returned by
76 is a convenient packaging of
84 removes the log with the given
86 freeing any associated storage.
89 returns a list of the names of all the logs.
90 The length of the list is returned in
96 on the returned pointer.
97 The strings in the list will be freed by this call as well.
98 (It is an error to call
100 on any of the strings in the list.)
105 which must be open, to the file descriptor
110 is set to zero (the default),
114 can inspect existing logs, but
120 The other functions are no-ops when
121 passed nil log structures.
127 .IR venti-server (3))
128 writes debugging information to the log named
130 which defaults to the string
131 .RB ` libventi/server '.