|
Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <time.h>#include <stdarg.h>#include <string.h>#include "gwlib.h"Go to the source code of this file.
Macros | |
| #define | FORMAT_SIZE (10*1024) |
Functions | |
| void | alog_reopen (void) |
| void | alog_close (void) |
| void | alog_open (char *fname, int use_localtm, int use_markers) |
| void | alog_use_localtime (void) |
| void | alog_use_gmtime (void) |
| static void | format (char *buf, const char *fmt) |
| void | alog (const char *fmt,...) |
Variables | |
| static FILE * | file = NULL |
| static char | filename [FILENAME_MAX+1] |
| static int | use_localtime |
| static int | markers = 1 |
| static List * | writers = NULL |
| #define FORMAT_SIZE (10*1024) |
Definition at line 173 of file accesslog.c.
| void alog | ( | const char * | fmt, |
| ... | |||
| ) |
Definition at line 206 of file accesslog.c.
References file, format(), FORMAT_SIZE, gwlist_add_producer(), gwlist_lock(), gwlist_remove_producer(), gwlist_unlock(), and writers.
Referenced by alog_close(), alog_open(), alog_reopen(), bb_alog_sms(), obey_request(), return_reply(), smsbox_req_handle(), and url_result_thread().
| void alog_close | ( | void | ) |
Definition at line 111 of file accesslog.c.
References alog(), file, gwlist_consume(), gwlist_destroy(), gwlist_lock(), gwlist_unlock(), markers, and writers.
Referenced by alog_open(), and main().
| void alog_open | ( | char * | fname, |
| int | use_localtm, | ||
| int | use_markers | ||
| ) |
Definition at line 129 of file accesslog.c.
References alog(), alog_close(), error(), file, filename, gwlist_create, info(), markers, use_localtime, warning(), and writers.
Referenced by init_bearerbox(), init_smsbox(), and init_wapbox().
| void alog_reopen | ( | void | ) |
Definition at line 85 of file accesslog.c.
References alog(), error(), file, filename, gwlist_consume(), gwlist_lock(), gwlist_unlock(), markers, and writers.
Referenced by main(), and signal_handler().
| void alog_use_gmtime | ( | void | ) |
Definition at line 167 of file accesslog.c.
References use_localtime.
| void alog_use_localtime | ( | void | ) |
Definition at line 161 of file accesslog.c.
References use_localtime.
|
static |
Definition at line 174 of file accesslog.c.
References FORMAT_SIZE, gw_gmtime(), gw_localtime(), markers, and use_localtime.
Referenced by alog(), and store_status().
|
static |
Definition at line 75 of file accesslog.c.
Referenced by alog(), alog_close(), alog_open(), and alog_reopen().
|
static |
Definition at line 76 of file accesslog.c.
Referenced by alog_open(), and alog_reopen().
|
static |
Definition at line 78 of file accesslog.c.
Referenced by alog_close(), alog_open(), alog_reopen(), and format().
|
static |
Definition at line 77 of file accesslog.c.
Referenced by alog_open(), alog_use_gmtime(), alog_use_localtime(), and format().
|
static |
Definition at line 83 of file accesslog.c.
Referenced by alog(), alog_close(), alog_open(), and alog_reopen().