log.h File Reference

Initialize and write messages in log. More...

#include <syslog.h>
#include "debug.h"

Include dependency graph for log.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define SYSLOG_OPTS   LOG_CONS||LOG_PID
#define LOG_TO_STD   1
#define LOG_TO_SYSLOG   2
#define debug_log_printf(area, priority, format,)

Functions

void init_log_engine (const char *log_id)
void log_printf (debug_level_t priority, char *format,...)
void log_area_printf (debug_area_t area, debug_level_t priority, char *format,...)

Variables

int log_engine
int debug_level
int debug_areas


Detailed Description

Initialize and write messages in log.

Some constants used in log, and function prototypes.

Definition in file log.h.


Define Documentation

#define debug_log_printf ( area,
priority,
format   ) 

Call log_area_printf(area, priority, ...) if DEBUG_ENABLE is defined

Definition at line 74 of file log.h.

Referenced by auth_packet_to_decision(), auth_process_answer(), auth_request_send(), clean_old_packets(), and psearch_and_destroy().

#define LOG_TO_STD   1

Value of log_engine when using printf()

Definition at line 40 of file log.h.

Referenced by main().

#define LOG_TO_SYSLOG   2

Value of log_engine when using syslog()

Definition at line 41 of file log.h.

Referenced by do_log_area_printf(), init_log_engine(), and nufw_daemonize().

#define SYSLOG_OPTS   LOG_CONS||LOG_PID

Syslog options of NuFW

Definition at line 38 of file log.h.

Referenced by init_log_engine().


Generated on Sat Nov 22 04:00:39 2008 for NuFW by  doxygen 1.4.7