appender_type_rollingfile.h
Go to the documentation of this file.
/* $Id: appender_type_rollingfile.h
*
* appender_type_rollingfile.h
*
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef log4c_appender_type_rollingfile_h
#define log4c_appender_type_rollingfile_h
#include <log4c/defs.h>
#include <log4c/appender.h>
#include <log4c/rollingpolicy.h>
__LOG4C_BEGIN_DECLS
LOG4C_API const log4c_appender_type_t log4c_appender_type_rollingfile;
LOG4C_API rollingfile_udata_t *rollingfile_make_udata(void);
LOG4C_API int rollingfile_udata_set_logdir(
rollingfile_udata_t *rfudatap,
const char* logdir);
LOG4C_API int rollingfile_udata_set_files_prefix(
rollingfile_udata_t *rfudatap,
const char * prefix);
LOG4C_API int rollingfile_udata_set_policy(rollingfile_udata_t* rfudatap,
log4c_rollingpolicy_t* policyp);
LOG4C_API const char* rollingfile_udata_get_logdir(rollingfile_udata_t* rfudatap);
LOG4C_API const char* rollingfile_udata_get_files_prefix(
rollingfile_udata_t* rfudatap);
LOG4C_API long rollingfile_get_current_file_size( rollingfile_udata_t* rfudatap);
__LOG4C_END_DECLS
#endif
appender.h
Implement this interface for your own strategies for printing log statements.
log4c_appender_type_rollingfile
__LOG4C_BEGIN_DECLS const log4c_appender_type_t log4c_appender_type_rollingfile
Definition appender_type_rollingfile.h:63
rollingfile_udata_set_files_prefix
int rollingfile_udata_set_files_prefix(rollingfile_udata_t *rfudatap, const char *prefix)
Definition appender_type_rollingfile.c:266
rollingfile_udata_get_files_prefix
const char * rollingfile_udata_get_files_prefix(rollingfile_udata_t *rfudatap)
Definition appender_type_rollingfile.c:274
rollingfile_make_udata
rollingfile_udata_t * rollingfile_make_udata(void)
Definition appender_type_rollingfile.c:242
rollingfile_udata_set_logdir
int rollingfile_udata_set_logdir(rollingfile_udata_t *rfudatap, const char *logdir)
Definition appender_type_rollingfile.c:251
rollingfile_get_current_file_size
long rollingfile_get_current_file_size(rollingfile_udata_t *rfudatap)
Definition appender_type_rollingfile.c:281
rollingfile_udata_set_policy
int rollingfile_udata_set_policy(rollingfile_udata_t *rfudatap, log4c_rollingpolicy_t *policyp)
Definition appender_type_rollingfile.c:233
rollingfile_udata_get_logdir
const char * rollingfile_udata_get_logdir(rollingfile_udata_t *rfudatap)
Definition appender_type_rollingfile.c:259
rollingpolicy.h
Log4c rolling policy interface. Defines the interface for managing and providing rolling policies.
log4c_rollingpolicy_t
struct __log4c_rollingpolicy log4c_rollingpolicy_t
Definition rollingpolicy.h:32
log4c_appender_type
log4c appender type class
Definition appender.h:46