log4c 1.2.4
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
78
79#include <log4c/defs.h>
80#include <log4c/appender.h>
81
82__LOG4C_BEGIN_DECLS
83
91LOG4C_API const log4c_appender_type_t log4c_appender_type_stream2;
92
99LOG4C_API void log4c_stream2_set_fp(log4c_appender_t* a_this, FILE *fp);
100
108LOG4C_API FILE * log4c_stream2_get_fp(log4c_appender_t* a_this);
109
110
118LOG4C_API void log4c_stream2_set_flags(log4c_appender_t* a_this, int flags);
119#define LOG4C_STREAM2_UNBUFFERED 0x01
120
126LOG4C_API int log4c_stream2_get_flags(log4c_appender_t* a_this);
127
128__LOG4C_END_DECLS
129
130#endif
Implement this interface for your own strategies for printing log statements.
struct __log4c_appender log4c_appender_t
Definition appender.h:34
struct log4c_appender_type log4c_appender_type_t
log4c appender type class
void log4c_stream2_set_fp(log4c_appender_t *a_this, FILE *fp)
Definition appender_type_stream2.c:147
FILE * log4c_stream2_get_fp(log4c_appender_t *a_this)
Definition appender_type_stream2.c:159
void log4c_stream2_set_flags(log4c_appender_t *a_this, int flags)
Definition appender_type_stream2.c:187
int log4c_stream2_get_flags(log4c_appender_t *a_this)
Definition appender_type_stream2.c:173