jabberd2  2.2.16
Defines | Functions | Variables
util/log.c File Reference
#include "util.h"

Go to the source code of this file.

Defines

#define MAX_LOG_LINE   (1024)

Functions

static int _log_facility (const char *facility)
log_t log_new (log_type_t type, const char *ident, const char *facility)
void log_write (log_t log, int level, const char *msgfmt,...)
void log_free (log_t log)
void debug_log (const char *file, int line, const char *msgfmt,...)
void set_debug_flag (int v)

Variables

static const char * _log_level []
static log_facility_t _log_facilities []

Define Documentation

#define MAX_LOG_LINE   (1024)

Definition at line 23 of file log.c.

Referenced by log_write().


Function Documentation

static int _log_facility ( const char *  facility) [static]

Definition at line 55 of file log.c.

References log_facility_st::facility, and log_facility_st::number.

Referenced by log_new().

log_t log_new ( log_type_t  type,
const char *  ident,
const char *  facility 
)

Definition at line 69 of file log.c.

References log_SYSLOG, _log_facility(), and log_STDOUT.

Referenced by JABBER_MAIN().

void log_write ( log_t  log,
int  level,
const char *  msgfmt,
  ... 
)

Definition at line 104 of file log.c.

References MAX_LOG_LINE, log_SYSLOG, _log_level, get_debug_flag(), and log_STDOUT.

Referenced by authreg_init(), _authreg_auth_log(), _authreg_auth_set(), _authreg_register_set(), _c2s_client_sx_callback(), _c2s_client_accept_check(), _c2s_client_mio_callback(), c2s_router_sx_callback(), c2s_router_mio_callback(), _c2s_pidfile(), _c2s_config_expand(), _c2s_hosts_expand(), _c2s_router_connect(), _c2s_sx_sasl_callback(), _c2s_time_checks(), JABBER_MAIN(), _router_pidfile(), _sm_signal_hup(), _sm_pidfile(), _sm_hosts_expand(), _sm_router_connect(), _s2s_pidfile(), _s2s_hosts_expand(), _s2s_router_connect(), _s2s_check_conn_routes(), _s2s_time_checks(), s2s_domain_in_whitelist(), _pbx_open_pipe(), c2s_pbx_init(), _pbx_process_command(), sm_sx_callback(), sm_mio_callback(), sm_storage_rate_limit(), filter_load(), filter_packet(), _route_add(), _router_process_bind(), _router_process_unbind(), _router_process_route(), _router_process_throttle(), _router_sx_callback(), _router_accept_check(), _router_route_unbind_walker(), router_mio_callback(), message_log(), s2s_router_sx_callback(), s2s_router_mio_callback(), user_table_load(), user_create(), user_delete(), in_mio_callback(), _in_sx_callback(), _in_result(), _in_verify(), _in_packet(), _out_dialback(), out_route(), out_packet(), _dns_result_a(), dns_resolve_domain(), out_resolve(), _out_mio_callback(), _out_sx_callback(), _out_result(), _out_verify(), mm_new(), _help_pkt_sm(), _roster_publish_user_load(), _template_roster_reload(), pkt_new(), sess_end(), and sess_start().

void log_free ( log_t  log)

Definition at line 174 of file log.c.

References log_SYSLOG, and log_FILE.

Referenced by JABBER_MAIN().

void debug_log ( const char *  file,
int  line,
const char *  msgfmt,
  ... 
)

Definition at line 261 of file log.c.

void set_debug_flag ( int  v)

Variable Documentation

const char* _log_level[] [static]

Definition at line 30 of file log.c.

Referenced by log_write().

Definition at line 42 of file log.c.