log4c  1.2.1
init.h
Go to the documentation of this file.
1 /* $Id$
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 
26 LOG4C_API int log4c_init(void);
27 
33 LOG4C_API int log4c_fini(void);
34 
35 /*
36  * Dumps all the current appender, layout and rollingpolicy types
37  * known by log4c.
38  * @param stream to write to
39  */
40 LOG4C_API void log4c_dump_all_types(FILE *fp);
41 
42 /*
43  * Dumps all the current instances of categories, appenders, layouts
44  * and rollingpolicy objects.
45  * An instances of a type consists of the base
46  * type information (name plus function table) and an instance name and
47  * configuration. For example one can have an instance of the rollingfile
48  * appender which logs to /var/tmp and another instance which logs to
49  * /usr/tmp. They are both of type rollingfile, but are distinct instances of
50  * it
51  * @param stream to write t
52  */
53 LOG4C_API void log4c_dump_all_instances(FILE *fp);
54 
55 #endif