log4c  1.2.4
init.h
Go to the documentation of this file.
1 /* $Id: init.h,v 1.6 2012/09/30 20:15:08 valtri Exp $
2  *
3  * Copyright 2001-2003, Meiosys (www.meiosys.com). All rights reserved.
4  *
5  * See the COPYING file for the terms of usage and distribution.
6  */
7 
8 #ifndef __log4c_init_h
9 #define __log4c_init_h
10 
11 #include <log4c/defs.h>
12 #include <stdio.h>
13 
14 __LOG4C_BEGIN_DECLS
15 
28 LOG4C_API int log4c_init(void);
29 
35 LOG4C_API int log4c_fini(void);
36 
37 /*
38  * Dumps all the current appender, layout and rollingpolicy types
39  * known by log4c.
40  * @param stream to write to
41  */
42 LOG4C_API void log4c_dump_all_types(FILE *fp);
43 
44 /*
45  * Dumps all the current instances of categories, appenders, layouts
46  * and rollingpolicy objects.
47  * An instances of a type consists of the base
48  * type information (name plus function table) and an instance name and
49  * configuration. For example one can have an instance of the rollingfile
50  * appender which logs to /var/tmp and another instance which logs to
51  * /usr/tmp. They are both of type rollingfile, but are distinct instances of
52  * it
53  * @param stream to write t
54  */
55 LOG4C_API void log4c_dump_all_instances(FILE *fp);
56 
57 __LOG4C_END_DECLS
58 
59 #endif