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
layout_type_basic_r.h
Implement a basic_r layout.
category.h
central class in the log4c package.
appender_type_rollingfile.h
Log4c rolling file appender interface.
log4c_rollingpolicy_type_set
const LOG4C_API log4c_rollingpolicy_type_t * log4c_rollingpolicy_type_set(const log4c_rollingpolicy_type_t *a_type)
Definition: rollingpolicy.c:226
appender_type_mmap.h
Log4c mmap(2) appender interface.
log4c_rc
LOG4C_API log4c_rc_t *const log4c_rc
Definition: rc.h:49
appender_type_stream.h
Log4c stream appender interface.
log4c_layout_types_print
LOG4C_API void log4c_layout_types_print(FILE *fp)
Definition: layout.c:47
log4c_category_set_appender
LOG4C_API const struct __log4c_appender * log4c_category_set_appender(log4c_category_t *a_category, struct __log4c_appender *a_appender)
Definition: category.c:163
log4c_category_set_priority
LOG4C_API int log4c_category_set_priority(log4c_category_t *a_category, int a_priority)
Definition: category.c:146
rc.h
log4c resource configuration
log4c_appender_type_rollingfile
__LOG4C_BEGIN_DECLS const LOG4C_API log4c_appender_type_t log4c_appender_type_rollingfile
Definition: appender_type_rollingfile.h:63
log4c_appender_type_stream2
__LOG4C_BEGIN_DECLS const LOG4C_API log4c_appender_type_t log4c_appender_type_stream2
Definition: appender_type_stream2.h:91
rollingpolicy_type_sizewin.h
Log4c rolling file size-win interface. Log4c ships with (and defaults to) the classic size-window rol...
log4c_appender_get
LOG4C_API log4c_appender_t * log4c_appender_get(const char *a_name)
Definition: appender.c:98
layout_type_dated_r.h
Implement a dated_r layout.
log4c_fini
LOG4C_API int log4c_fini(void)
Definition: init.c:229
log4c_appender_type
log4c appender type class
Definition: appender.h:46
init.h
log4c constructors and destructors
log4c_layout_type
log4c layout type class
Definition: layout.h:46
log4c_init
LOG4C_API int log4c_init(void)
Definition: init.c:93
log4c_appender_type_set
const LOG4C_API log4c_appender_type_t * log4c_appender_type_set(const log4c_appender_type_t *a_type)
Definition: appender.c:79
layout_type_basic.h
Implement a basic layout.
log4c_load
LOG4C_API int log4c_load(const char *a_filename)
Definition: rc.c:369
rollingpolicy.h
Log4c rolling policy interface. Defines the interface for managing and providing rolling policies.
layout_type_dated.h
Implement a dated layout.
log4c_appender_types_print
LOG4C_API void log4c_appender_types_print(FILE *fp)
Definition: appender.c:50
log4c_layout_type_set
const LOG4C_API log4c_layout_type_t * log4c_layout_type_set(const log4c_layout_type_t *a_type)
Definition: layout.c:76
layout.h
Interface for user specific layout format of log4c_logging_event events.
log4c_priority_to_int
LOG4C_API int log4c_priority_to_int(const char *a_priority_name)
Definition: priority.c:42
log4c_appender_type_stream
const __LOG4C_BEGIN_DECLS log4c_appender_type_t log4c_appender_type_stream
Definition: appender_type_stream.c:56
appender_type_syslog.h
Log4c syslog(3) appender interface.
log4c_appender_type_mmap
const __LOG4C_BEGIN_DECLS log4c_appender_type_t log4c_appender_type_mmap
Definition: appender_type_mmap.c:147
appender.h
Implement this interface for your own strategies for printing log statements.
log4c_category_get
LOG4C_API log4c_category_t * log4c_category_get(const char *a_name)
Definition: category.c:48
log4c_appender_type_syslog
const __LOG4C_BEGIN_DECLS log4c_appender_type_t log4c_appender_type_syslog
Definition: appender_type_syslog.c:98
log4c_rollingpolicy_type
log4c rollingpolicy type. Defines the interface a specific policy must provide to the rollingfile app...
Definition: rollingpolicy.h:53
appender_type_stream2.h
Log4c stream2 appender interface.