OpenDNSSEC-signer 1.3.0
Defines | Functions
/build/buildd/opendnssec-1.3.0/signer/src/shared/log.c File Reference
#include "config.h"
#include "shared/duration.h"
#include "shared/file.h"
#include "shared/log.h"
#include "shared/util.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for log.c:

Go to the source code of this file.

Defines

#define LOG_EMERG   0
#define LOG_ALERT   1
#define LOG_CRIT   2
#define LOG_ERR   3
#define LOG_WARNING   4
#define LOG_NOTICE   5
#define LOG_INFO   6
#define LOG_DEBUG   7
#define LOG_DEEEBUG   8
#define CTIME_LENGTH   26
#define MY_PACKAGE_TARNAME   "ods-signerd"

Functions

void ods_log_init (const char *filename, int use_syslog, int verbosity)
void ods_log_close (void)
int ods_log_get_level ()
void ods_log_deeebug (const char *format,...)
void ods_log_debug (const char *format,...)
void ods_log_verbose (const char *format,...)
void ods_log_info (const char *format,...)
void ods_log_warning (const char *format,...)
void ods_log_error (const char *format,...)
void ods_log_crit (const char *format,...)
void ods_log_alert (const char *format,...)
void ods_fatal_exit (const char *format,...)

Define Documentation

#define CTIME_LENGTH   26

Definition at line 65 of file log.c.

#define LOG_ALERT   1

Definition at line 51 of file log.c.

Referenced by ods_log_alert().

#define LOG_CRIT   2

Definition at line 52 of file log.c.

Referenced by ods_fatal_exit(), and ods_log_crit().

#define LOG_DEBUG   7

Definition at line 57 of file log.c.

Referenced by ods_log_debug(), and ods_log_deeebug().

#define LOG_DEEEBUG   8

Definition at line 60 of file log.c.

Referenced by ods_log_deeebug().

#define LOG_EMERG   0

Logging.

Definition at line 50 of file log.c.

#define LOG_ERR   3

Definition at line 53 of file log.c.

Referenced by ods_log_error().

#define LOG_INFO   6

Definition at line 56 of file log.c.

Referenced by ods_log_verbose().

#define LOG_NOTICE   5

Definition at line 55 of file log.c.

Referenced by ods_log_info().

#define LOG_WARNING   4

Definition at line 54 of file log.c.

Referenced by ods_log_warning().

#define MY_PACKAGE_TARNAME   "ods-signerd"

Definition at line 75 of file log.c.

Referenced by ods_log_init().


Function Documentation

void ods_fatal_exit ( const char *  format,
  ... 
)

Log emergency and exit.

Definition at line 373 of file log.c.

References LOG_CRIT.

Referenced by allocator_alloc(), engine_start(), ods_thr_fork_create(), and ods_thread_blocksigs().

void ods_log_alert ( const char *  format,
  ... 
)

Log alert.

Definition at line 357 of file log.c.

References LOG_ALERT.

Referenced by denial_nsecify(), denial_nsecify3(), rrset_commit(), tools_zone_fetcher(), zonedata_nsecify(), and zonedata_nsecify3().

void ods_log_close ( void  )

Close logging.

Definition at line 131 of file log.c.

References ods_log_debug(), and ods_log_init().

Referenced by engine_start(), and tools_zone_fetcher().

void ods_log_crit ( const char *  format,
  ... 
)

Log critical.

Definition at line 341 of file log.c.

References LOG_CRIT.

Referenced by cmdhandler_start(), engine_update_zones(), ods_build_path(), and zone_prepare_nsec3().

void ods_log_debug ( const char *  format,
  ... 
)
void ods_log_deeebug ( const char *  format,
  ... 
)

Heavy debug logging.

Definition at line 245 of file log.c.

References LOG_DEBUG, and LOG_DEEEBUG.

Referenced by fifoq_pop(), fifoq_push(), log_rdf(), log_rr(), rrset_sign(), and tools_input().

void ods_log_error ( const char *  format,
  ... 
)

Log error.

Definition at line 325 of file log.c.

References LOG_ERR.

Referenced by adapi_get_origin(), adapi_get_serial(), adapi_get_ttl(), adapi_set_serial(), adapi_trans_diff(), adapi_trans_full(), adapter_create(), adapter_init(), adapter_read(), adapter_write(), adbackup_read(), adfile_read(), adfile_write(), adutil_readline_frm_file(), allocator_create(), cmdhandler_create(), denial_create(), denial_nsecify(), denial_nsecify3(), domain_add_rrset(), domain_create(), domain_del_rrset(), domain_dstatus(), domain_examine_rrset_is_alone(), domain_examine_rrset_is_singleton(), domain_examine_valid_zonecut(), domain_recover(), duration_create(), duration_create_from_string(), engine_config(), engine_config_check(), engine_start(), engine_update_zones(), fifoq_create(), fifoq_push(), init_xfrd(), key_create(), key_recover(), keylist_create(), keylist_push(), lhsm_get_key(), lhsm_sign(), log_rdf(), log_rr(), nsec3params_create(), nsec3params_create_salt(), nsec3params_recover_from_backup(), nsec3params_salt2str(), ods_chown(), ods_file_copy(), ods_thr_fork_wait(), parse_conf_adapters(), parse_conf_string(), parse_file_check(), parse_sc_keys(), parse_zonelist_adapter(), parse_zonelist_zones(), privdrop(), privgid(), privuid(), rrset_add_rr(), rrset_create(), rrset_del_rr(), rrset_diff(), rrset_queue(), rrset_recover(), rrset_sign(), rrset_wipe_out(), rrsigs_add_sig(), rrsigs_create(), rrsigs_print(), schedule_create(), schedule_pop_task(), schedule_task(), signconf_check(), signconf_compare_keys(), signconf_create(), signconf_recover_from_backup(), signconf_update(), task_create(), task_recover_from_backup(), time_datestamp(), tools_audit(), tools_input(), tools_nsecify(), tools_output(), tools_zone_fetcher(), unschedule_task(), util_write_pidfile(), worker_start(), zone_add_rr(), zone_create(), zone_del_rr(), zone_load_signconf(), zone_merge(), zone_prepare_nsec3(), zone_publish_dnskeys(), zone_recover(), zone_update_serial(), zonedata_add_denial(), zonedata_add_domain(), zonedata_create(), zonedata_del_denial(), zonedata_del_domain(), zonedata_entize(), zonedata_nsecify(), zonedata_nsecify3(), zonedata_print(), zonedata_recover(), zonedata_update_serial(), zonelist_add_zone(), zonelist_create(), zonelist_del_zone(), zonelist_lookup_zone_by_name(), and zonelist_update().

int ods_log_get_level ( )

Get facility by string. ods_log_get_user ods_log_get_facility return error, LOG_*** as a parameter Get the log level.

Definition at line 202 of file log.c.

Referenced by log_rdf(), and log_rr().

void ods_log_info ( const char *  format,
  ... 
)

Log info.

Definition at line 293 of file log.c.

References LOG_NOTICE.

Referenced by engine_start(), log_rdf(), log_rr(), schedule_get_first_task(), signconf_log(), stats_log(), and tools_zone_fetcher().

void ods_log_init ( const char *  filename,
int  use_syslog,
int  verbosity 
)
void ods_log_verbose ( const char *  format,
  ... 
)
void ods_log_warning ( const char *  format,
  ... 
)