ESAPI-C 1.0
The OWASP Enterprise Security API for C

log.c File Reference

A Logging module implementation. More...

#include <stdlib.h>
#include <string.h>
#include "log.h"

Go to the source code of this file.

Defines

#define DEFAULT_LOG_CATEGORY_NAME   "log4c.category.default"

Functions

int esapi_open_log ()
 Enables logging for this process.
int esapi_close_log ()
 Disables logging for this process.
void _log (int priority, const user *u, int type, const char *fmt,...)
void esapi_log_trace (const user *u, int type, const char *fmt,...)
 Log a TRACE level message.
void esapi_log_debug (const user *u, int type, const char *fmt,...)
 Log a DEBUG level message.
void esapi_log_info (const user *u, int type, const char *fmt,...)
 Log an INFO level message.
void esapi_log_warn (const user *u, int type, const char *fmt,...)
 Log a WARN level message.
void esapi_log_error (const user *u, int type, const char *fmt,...)
 Log an ERROR level message.
void esapi_log_fatal (const user *u, int type, const char *fmt,...)
 Log a FATAL level message.

Variables

char * eventTypeNames []

Detailed Description

A Logging module implementation.

Since:
January 30, 2011

Definition in file log.c.


Variable Documentation

char* eventTypeNames[]
Initial value:
 { "SECURITY_SUCCESS", "SECURITY_FAILURE",
                "EVENT_SUCCESS", "EVENT_FAILURE" }

Definition at line 15 of file log.c.

 All Data Structures Files Functions Variables Typedefs Defines