OpenDNSSEC-signer 1.3.0rc3
|
#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>
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 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_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().
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, |
... | |||
) |
Log debug.
Definition at line 261 of file log.c.
References LOG_DEBUG.
Referenced by backup_read_check_str(), backup_read_duration(), backup_read_int(), backup_read_rr_type(), backup_read_size_t(), backup_read_str(), backup_read_time_t(), backup_read_uint16_t(), backup_read_uint32_t(), backup_read_uint8_t(), cmdhandler_create(), cmdhandler_start(), engine_start(), engine_update_zones(), engine_wakeup_workers(), keylist_push(), lhsm_sign(), log_rdf(), log_rr(), ods_chown(), ods_file_copy(), ods_fopen(), ods_log_close(), ods_log_init(), parse_conf_adapters(), parse_file_check(), parse_zonelist_zones(), privdrop(), schedule_cleanup(), schedule_flush(), schedule_pop_task(), schedule_task(), signal_handler(), signconf_log(), signconf_recover_from_backup(), task_log(), task_recover_from_backup(), tools_audit(), tools_nsecify(), tools_output(), tools_zone_fetcher(), unschedule_task(), util_write_pidfile(), worker_create(), worker_wakeup(), zone_load_signconf(), zone_prepare_nsec3(), zonedata_update_serial(), zonelist_cleanup(), and zonelist_update().
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_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 | ( | ) |
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 | ||
) |
Initialize logging.
Definition at line 84 of file log.c.
References MY_PACKAGE_TARNAME, ods_fclose(), ods_fopen(), ods_log_debug(), ods_log_get_facility(), ods_log_verbose(), and ods_log_warning().
Referenced by engine_start(), ods_log_close(), and tools_zone_fetcher().
void ods_log_verbose | ( | const char * | format, |
... | |||
) |
Log verbose.
Definition at line 277 of file log.c.
References LOG_INFO.
Referenced by adapter_read(), adapter_write(), engine_config(), engine_start(), log_rdf(), log_rr(), ods_fopen(), ods_log_init(), tools_input(), tools_output(), zone_add_rr(), and zone_load_signconf().
void ods_log_warning | ( | const char * | format, |
... | |||
) |
Log warning.
Definition at line 309 of file log.c.
References LOG_WARNING.
Referenced by cmdhandler_start(), domain_commit(), duration2time(), log_rdf(), log_rr(), ods_chown(), ods_log_init(), ods_thr_fork_wait(), parse_conf_adapters(), rrset_add_rr(), rrset_del_rr(), rrsigs_add_sig(), schedule_get_first_task(), tools_input(), tools_zone_fetcher(), unschedule_task(), util_dnssec_rrs_add_rr(), zone_add_rr(), zone_del_rr(), zone_load_signconf(), zonedata_commit(), zonedata_nsecify(), zonelist_add_zone(), and zonelist_del_zone().