Data Fields

LOGMANAGER_OPTIONS Struct Reference

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.

Detailed Description

Log manager configuration provided at creation time as an argument to new_logmanager().

Examples:

example.c.


Field Documentation

Must be set to LOGMANAGER_API_VERSION.

Examples:
example.c.

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

Examples:
example.c.

An OR-ed combination of LMGR_* flags.

Examples:
example.c.

Compression type : 'gz' or 'bz2'.

Compression level as a string.

Possible values depend on the compression type

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

Examples:
example.c.

Global size limit (sum).

Default = 0 = no limit

Examples:
example.c.

Maximum number of log files to keep.

Default = 0 = no limit

File creation mode.

Note:
mode is a unix-style permission expressed as an hexadecimal number (example: 0x644). Default = 0 => 0x644

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


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Defines