18 static void log_release(
22 static void log_message_v(
24 apr_pool_t *temp_pool,
30 static void log_error_v(
32 apr_pool_t *temp_pool,
37 static void log_trace_v(
39 apr_pool_t *temp_pool,
63 apr_pool_t *temp_pool,
64 apr_pool_t *module_pool,
72 if (apr_pool_create(&log_pool,module_pool) != APR_SUCCESS) {
74 "apr_pool_create() failed in afw_create_log_deprecated().");
80 self->c.inf = &afw_log_deprecated_inf;
81 self->log_pool = log_pool;
82 self->log_file = log_file;
83 self->encoding = apr_pstrdup(log_pool, encoding);
95 apr_pool_destroy(self->log_pool);
100 apr_pool_t *temp_pool,
106 apr_file_puts(apr_pvsprintf(temp_pool, (
const char *)fmt, args), self->log_file);
107 apr_file_putc(
'\n', self->log_file);
112 apr_pool_t *temp_pool,
118 apr_file_puts(apr_pvsprintf(temp_pool, (
const char *)fmt, args), self->log_file);
119 apr_file_putc(
'\n', self->log_file);
124 apr_pool_t *temp_pool,
130 apr_file_puts(apr_pvsprintf(temp_pool, (
const char *)fmt, args), self->log_file);
131 apr_file_putc(
'\n', self->log_file);
AFW_DEFINE(const afw_object_t *)
Header file for afw_log_deprecated.c.
afw_utf8_octet_t afw_utf8_z_t
NFC normalized UTF-8 null terminated string.
#define AFW_MESSAGE_PREFIX
Macro to produce prefix for AFW messages.
afw_create_log_deprecated(apr_pool_t *temp_pool, apr_pool_t *module_pool, apr_file_t *log_file, const char *encoding)
Create a basic log.
afw_log_deprecated_t interface.
Public afw_log_deprecated_t object.