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
layout_type_basic_r.h
Implement a basic_r layout.
category.h
central class in the log4c package.
log4c_appender_type_rollingfile
__LOG4C_BEGIN_DECLS const log4c_appender_type_t log4c_appender_type_rollingfile
Definition: appender_type_rollingfile.h:63
log4c_layout_types_free
void log4c_layout_types_free(void)
Definition: layout.c:42
appender_type_rollingfile.h
Log4c rolling file appender interface.
appender_type_mmap.h
Log4c mmap(2) appender interface.
log4c_appender_get
log4c_appender_t * log4c_appender_get(const char *a_name)
Definition: appender.c:101
appender_type_stream.h
Log4c stream appender interface.
log4c_appender_type_set
const log4c_appender_type_t * log4c_appender_type_set(const log4c_appender_type_t *a_type)
Definition: appender.c:82
rc.h
log4c resource configuration
log4c_priority_to_int
int log4c_priority_to_int(const char *a_priority_name)
Definition: priority.c:42
rollingpolicy_type_sizewin.h
Log4c rolling file size-win interface. Log4c ships with (and defaults to) the classic size-window rol...
layout_type_dated_local.h
Implement a dated layout with local time.
log4c_appender_type_mmap
__LOG4C_BEGIN_DECLS const log4c_appender_type_t log4c_appender_type_mmap
Definition: appender_type_mmap.c:150
log4c_layout_types_print
void log4c_layout_types_print(FILE *fp)
Definition: layout.c:49
layout_type_dated_r.h
Implement a dated_r layout.
log4c_category_set_appender
const struct __log4c_appender * log4c_category_set_appender(log4c_category_t *a_category, struct __log4c_appender *a_appender)
Definition: category.c:165
log4c_layout_type_set
const log4c_layout_type_t * log4c_layout_type_set(const log4c_layout_type_t *a_type)
Definition: layout.c:78
log4c_appender_type
log4c appender type class
Definition: appender.h:46
log4c_rollingpolicy_type_set
const log4c_rollingpolicy_type_t * log4c_rollingpolicy_type_set(const log4c_rollingpolicy_type_t *a_type)
Definition: rollingpolicy.c:233
init.h
log4c constructors and destructors
log4c_layout_type
log4c layout type class
Definition: layout.h:46
log4c_appender_type_syslog
__LOG4C_BEGIN_DECLS const log4c_appender_type_t log4c_appender_type_syslog
Definition: appender_type_syslog.c:111
layout_type_basic.h
Implement a basic layout.
log4c_category_set_priority
int log4c_category_set_priority(log4c_category_t *a_category, int a_priority)
Definition: category.c:148
log4c_rc
log4c_rc_t *const log4c_rc
Definition: rc.h:49
rollingpolicy.h
Log4c rolling policy interface. Defines the interface for managing and providing rolling policies.
log4c_fini
int log4c_fini(void)
Definition: init.c:233
layout_type_dated.h
Implement a dated layout.
log4c_category_get
log4c_category_t * log4c_category_get(const char *a_name)
Definition: category.c:50
log4c_appender_types_print
void log4c_appender_types_print(FILE *fp)
Definition: appender.c:53
layout.h
Interface for user specific layout format of log4c_logging_event events.
log4c_appender_type_stream
__LOG4C_BEGIN_DECLS const log4c_appender_type_t log4c_appender_type_stream
Definition: appender_type_stream.c:58
layout_type_dated_local_r.h
Implement a dated layout (reentrant) with local time.
appender_type_syslog.h
Log4c syslog(3) appender interface.
log4c_load
int log4c_load(const char *a_filename)
Definition: rc.c:383
log4c_appender_types_free
void log4c_appender_types_free(void)
Definition: appender.c:46
appender.h
Implement this interface for your own strategies for printing log statements.
log4c_appender_type_stream2
__LOG4C_BEGIN_DECLS const log4c_appender_type_t log4c_appender_type_stream2
Definition: appender_type_stream2.h:91
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.
log4c_init
int log4c_init(void)
Definition: init.c:94