table of contents
appender_type_rollingfile.h(3) | log4c | appender_type_rollingfile.h(3) |
NAME¶
appender_type_rollingfile.h - Log4c rolling file appender interface.SYNOPSIS¶
#include <log4c/defs.h>Functions¶
LOG4C_API rollingfile_udata_t * rollingfile_make_udata (void)
Variables¶
__LOG4C_BEGIN_DECLS LOG4C_API const log4c_appender_type_t log4c_appender_type_rollingfile
Detailed Description¶
Log4c rolling file appender interface.Function Documentation¶
LOG4C_API long rollingfile_get_current_file_size (rollingfile_udata_t *rfudatap) Get the prefix string in this rolling file appender configuration.¶
Parameters:rfudatap the rolling file appender
configuration object.
Returns:
the current size of the file being logged
to.
LOG4C_API rollingfile_udata_t* rollingfile_make_udata (void) Get a new rolling file appender configuration object.¶
Returns:a new rolling file appender configuration
object, otherwise NULL.
LOG4C_API const char* rollingfile_udata_get_files_prefix (rollingfile_udata_t *rfudatap) Get the prefix string in this rolling file appender configuration.¶
Parameters:rfudatap the rolling file appender
configuration object.
Returns:
the prefix.
LOG4C_API const char* rollingfile_udata_get_logdir (rollingfile_udata_t *rfudatap) Get the logging directory in this rolling file appender configuration.¶
Parameters:rfudatap the rolling file appender
configuration object.
Returns:
the logging directory.
LOG4C_API int rollingfile_udata_set_files_prefix (rollingfile_udata_t *rfudatap, char *prefix) Set the prefix string in this rolling file appender configuration.¶
Parameters:rfudatap the rolling file appender
configuration object.
prefix the logging files prfix to use.
Returns:
zero if successful, non-zero otherwise.
LOG4C_API int rollingfile_udata_set_logdir (rollingfile_udata_t *rfudatap, char *logdir) Set the logging directory in this rolling file appender configuration.¶
Parameters:rfudatap the rolling file appender
configuration object.
logdir the logging directory to set.
Returns:
zero if successful, non-zero otherwise.
LOG4C_API int rollingfile_udata_set_policy (rollingfile_udata_t *rfudatap, log4c_rollingpolicy_t *policyp) Set the rolling policy in this rolling file appender configuration.¶
Parameters:rfudatap the rolling file appender
configuration object.
policyp the logging files prfix to use.
Returns:
zero if successful, non-zero otherwise.
Variable Documentation¶
__LOG4C_BEGIN_DECLS LOG4C_API const log4c_appender_type_t log4c_appender_type_rollingfile rollingfile appender type definition.¶
This should be used as a parameter to the log4c_appender_set_type() routine to set the type of the appender.Author¶
Generated automatically by Doxygen for log4c from the source code.Mon May 2 2011 | Version 1.2.1 |