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 have textual names represented as UTF strings.
56 returns a reference to the log named
58 If a log with that name does not exist and
60 is non-zero, a new log capable of holding at
63 bytes is allocated and returned.
65 releases the reference returned by
74 is a convenient packaging of
82 removes the log with the given
84 freeing any associated storage.
87 returns a list of the names of all the logs.
88 The length of the list is returned in
94 on the returned pointer.
95 The strings in the list will be freed by this call as well.
96 (It is an error to call
98 on any of the strings in the list.)
103 which must be open, to the file descriptor
108 is set to zero (the default),
112 can inspect existing logs, but
118 The other functions are no-ops when
119 passed nil log structures.
125 .IR venti-server (3))
126 writes debugging information to the log named
128 which defaults to the string
129 .LR libventi/server .