#include "xdasd_log.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
Go to the source code of this file.
Functions | |
static void | log_time (void) |
Appends a log line containing the current date and time. | |
int | xdasd_log_open (const char *path, int append, int level) |
Opens the log file for overwrite or append. | |
void | xdasd_log_close (void) |
Closes the log file. | |
int | xdasd_log_level (void) |
Determines the logging level. | |
void | xdasd_log (int level, const char *msg,...) |
Logs a message. | |
void | xdasd_fatal (const char *msg,...) |
Logs a fatal error message and terminates with a non-zero status. | |
Variables | |
static FILE * | g_xdasd_logfile = 0 |
The internal log file object. | |
static int | g_xdasd_loglevel = 0 |
The command line log level. |
Definition in file xdasd_log.c.