klogprv.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef _KLONE_LOGPRV_H_
00012 #define _KLONE_LOGPRV_H_
00013
00014 #include <klone/klog.h>
00015
00016 #ifdef __cplusplus
00017 extern "C" {
00018 #endif
00019
00020 static const char *kloglev[] =
00021 {
00022 "DBG", "INF", "NTC", "WRN", "ERR", "CRT", "ALR", "EMR"
00023 };
00024
00025
00026 int klog_new (int type, int threshold, const char *ident, klog_t **pkl);
00027 int klog_open_mem (klog_t *kl, size_t ln_max);
00028 int klog_open_syslog (klog_t *kl, int fac, int logopt);
00029 int klog_open_file (klog_t *kl, const char *base, size_t npages, size_t nlines);
00030 const char *klog_to_str (int lev);
00031
00032 #ifdef __cplusplus
00033 }
00034 #endif
00035
00036 #endif