log4c  1.2.1
appender_type_stream2.h
Go to the documentation of this file.
1 /*
2  *
3  * appender_type_stream.h
4  *
5  * Copyright 2001-2003, Meiosys (www.meiosys.com). All rights reserved.
6  *
7  * See the COPYING file for the terms of usage and distribution.
8  */
9 
10 #ifndef log4c_appender_type_stream2_h
11 #define log4c_appender_type_stream2_h
12 
79 #include <log4c/defs.h>
80 #include <log4c/appender.h>
81 
82 __LOG4C_BEGIN_DECLS
83 
92 
99 LOG4C_API void log4c_stream2_set_fp(log4c_appender_t* a_this, FILE *fp);
100 
108 LOG4C_API FILE * log4c_stream2_get_fp(log4c_appender_t* a_this);
109 
110 
118 LOG4C_API void log4c_stream2_set_flags(log4c_appender_t* a_this, int flags);
119 #define LOG4C_STREAM2_UNBUFFERED 0x01
120 
126 LOG4C_API int log4c_stream2_get_flags(log4c_appender_t* a_this);
127 
128 __LOG4C_END_DECLS
129 
130 #endif
log4c_stream2_get_flags
LOG4C_API int log4c_stream2_get_flags(log4c_appender_t *a_this)
Definition: appender_type_stream2.c:174
log4c_appender_t
struct __log4c_appender log4c_appender_t
Definition: appender.h:34
log4c_appender_type_stream2
__LOG4C_BEGIN_DECLS const LOG4C_API log4c_appender_type_t log4c_appender_type_stream2
Definition: appender_type_stream2.h:91
log4c_appender_type
log4c appender type class
Definition: appender.h:46
log4c_stream2_set_flags
LOG4C_API void log4c_stream2_set_flags(log4c_appender_t *a_this, int flags)
Definition: appender_type_stream2.c:188
log4c_stream2_get_fp
LOG4C_API FILE * log4c_stream2_get_fp(log4c_appender_t *a_this)
Definition: appender_type_stream2.c:160
log4c_appender_get_name
const LOG4C_API char * log4c_appender_get_name(const log4c_appender_t *a_appender)
Definition: appender.c:155
log4c_stream2_set_fp
LOG4C_API void log4c_stream2_set_fp(log4c_appender_t *a_this, FILE *fp)
Definition: appender_type_stream2.c:148
log4c_logging_event_t
logging event object
Definition: logging_event.h:49
log4c_appender_get_udata
LOG4C_API void * log4c_appender_get_udata(const log4c_appender_t *a_appender)
Definition: appender.c:174
log4c_appender_set_udata
LOG4C_API void * log4c_appender_set_udata(log4c_appender_t *a_appender, void *a_udata)
Definition: appender.c:210
appender.h
Implement this interface for your own strategies for printing log statements.
appender_type_stream2.h
Log4c stream2 appender interface.