log4c 1.2.4
appender_type_rollingfile.h
Go to the documentation of this file.
1/* $Id: appender_type_rollingfile.h
2 *
3 * appender_type_rollingfile.h
4 *
5 *
6 * See the COPYING file for the terms of usage and distribution.
7 */
8
9#ifndef log4c_appender_type_rollingfile_h
10#define log4c_appender_type_rollingfile_h
11
50#include <log4c/defs.h>
51#include <log4c/appender.h>
52#include <log4c/rollingpolicy.h>
53
54__LOG4C_BEGIN_DECLS
55
64
69LOG4C_API rollingfile_udata_t *rollingfile_make_udata(void);
70
78 rollingfile_udata_t *rfudatap,
79 const char* logdir);
87 rollingfile_udata_t *rfudatap,
88 const char * prefix);
95LOG4C_API int rollingfile_udata_set_policy(rollingfile_udata_t* rfudatap,
96 log4c_rollingpolicy_t* policyp);
102LOG4C_API const char* rollingfile_udata_get_logdir(rollingfile_udata_t* rfudatap);
103
109LOG4C_API const char* rollingfile_udata_get_files_prefix(
110 rollingfile_udata_t* rfudatap);
111
117LOG4C_API long rollingfile_get_current_file_size( rollingfile_udata_t* rfudatap);
118
119__LOG4C_END_DECLS
120
121#endif
Implement this interface for your own strategies for printing log statements.
__LOG4C_BEGIN_DECLS const log4c_appender_type_t log4c_appender_type_rollingfile
Definition: appender_type_rollingfile.h:63
int rollingfile_udata_set_files_prefix(rollingfile_udata_t *rfudatap, const char *prefix)
Definition: appender_type_rollingfile.c:266
const char * rollingfile_udata_get_files_prefix(rollingfile_udata_t *rfudatap)
Definition: appender_type_rollingfile.c:274
rollingfile_udata_t * rollingfile_make_udata(void)
Definition: appender_type_rollingfile.c:242
int rollingfile_udata_set_logdir(rollingfile_udata_t *rfudatap, const char *logdir)
Definition: appender_type_rollingfile.c:251
long rollingfile_get_current_file_size(rollingfile_udata_t *rfudatap)
Definition: appender_type_rollingfile.c:281
int rollingfile_udata_set_policy(rollingfile_udata_t *rfudatap, log4c_rollingpolicy_t *policyp)
Definition: appender_type_rollingfile.c:233
const char * rollingfile_udata_get_logdir(rollingfile_udata_t *rfudatap)
Definition: appender_type_rollingfile.c:259
Log4c rolling policy interface. Defines the interface for managing and providing rolling policies.
struct __log4c_rollingpolicy log4c_rollingpolicy_t
Definition: rollingpolicy.h:32
log4c appender type class
Definition: appender.h:46