142
188
`rootdir' specifies the path of the root directory.
143
189
`path' specifies the path of the log file.
144
190
`level' specifies the leve of logging.
145
192
The return value is true if success, else it is false. */
193
int log_open(const char *rootdir, const char *path, int level, int trunc);
149
196
/* Print formatted string into the log file. */
150
197
void log_print(int level, const char *format, ...);
153
207
/* Initialize the root directory.
154
208
`rootdir' specifies the path of the root directory.
155
209
The return value is true if success, else it is false. */