xdasd_log.c File Reference

OpenXDAS daemon message logging services. More...

#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.


Detailed Description

OpenXDAS daemon message logging services.

Author:
John Calcote (jcalcote@novell.com)
Attention:
Please submit patches to http://openxdas.sourceforge.net

Definition in file xdasd_log.c.


Generated on Thu Aug 20 22:33:07 2009 for OpenXDAS by  doxygen 1.5.6