Log manager configuration provided at creation time as an argument to new_logmanager(). More...
#include <logmanager.h>
Data Fields | |
| unsigned int | api_version |
| Must be set to LOGMANAGER_API_VERSION. | |
| char * | base_path |
| The base path. | |
| unsigned int | flags |
| An OR-ed combination of LMGR_* flags. | |
| struct { | |
| char * type | |
| Compression type : 'gz' or 'bz2'. | |
| char * level | |
| Compression level as a string. | |
| } | compress |
| apr_off_t | file_maxsize |
| Max log file individual size. | |
| apr_off_t | global_maxsize |
| Global size limit (sum). | |
| unsigned int | keep_count |
| Maximum number of log files to keep. | |
| apr_fileperms_t | create_mode |
| File creation mode. | |
| char * | debug_file |
| Path to debug file. | |
| int | debug_level |
| Debug level (>= 0). | |
| char * | rotate_cmd |
| Command to run on each rotation. | |
| TIMESTAMP | rotate_delay |
| Max delay between rotations (in seconds). | |
| TIMESTAMP | purge_delay |
| Max log file age (in seconds). | |
| char * | log_path |
| If set, overrides base path to compute log file paths. | |
Log manager configuration provided at creation time as an argument to new_logmanager().
| unsigned int LOGMANAGER_OPTIONS::api_version |
Must be set to LOGMANAGER_API_VERSION.
The base path.
This is the prefix used to compute link, status, and pid file paths. If log path not set, also used to compute log file paths
| unsigned int LOGMANAGER_OPTIONS::flags |
An OR-ed combination of LMGR_* flags.
| char* LOGMANAGER_OPTIONS::type |
Compression type : 'gz' or 'bz2'.
Compression level as a string.
Possible values depend on the compression type
| struct { ... } LOGMANAGER_OPTIONS::compress |
| apr_off_t LOGMANAGER_OPTIONS::file_maxsize |
Max log file individual size.
When returning from new_logmanager(), the value can be modified if it does not fit internal constraints. Default = 0 = no limit
| apr_off_t LOGMANAGER_OPTIONS::global_maxsize |
| unsigned int LOGMANAGER_OPTIONS::keep_count |
Maximum number of log files to keep.
Default = 0 = no limit
| apr_fileperms_t LOGMANAGER_OPTIONS::create_mode |
File creation mode.
Path to debug file.
Default = NULL = no debug file
Debug level (>= 0).
Default = 0 = no debug output
Command to run on each rotation.
Max delay between rotations (in seconds).
Default = 0 = not set
Max log file age (in seconds).
Default = 0 = not set
If set, overrides base path to compute log file paths.
Default (NULL) => use base path
1.7.1