klogprv.h

00001 /*
00002  * Copyright (c) 2005-2012 by KoanLogic s.r.l. <http://www.koanlogic.com>
00003  * All rights reserved.
00004  *
00005  * This file is part of KLone, and as such it is subject to the license stated
00006  * in the LICENSE file which you have received as part of this distribution.
00007  *
00008  * $Id: klogprv.h,v 1.9 2006/01/09 12:38:37 tat Exp $
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 /* common */
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 /* _KLONE_LOGPRV_H_ */

←Products
Copyright © 2005-2012 - KoanLogic S.r.l. - All rights reserved