20 #define AFW_IMPLEMENTATION_ID "standard"
31 static const afw_utf8_t impl_factory_description =
37 &impl_afw_log_factory_inf,
39 &impl_factory_description
47 return &impl_afw_log_factory;
55 impl_afw_log_factory_create_log_cede_p (
92 impl_afw_log_set_own_mask(
121 for (s = message->s, len = message->len; len > 0; len--, s++) {
124 if (c < 32 && c !=
'\n') {
127 if (putc(c, xctx->env->
stdout_fd) == EOF) {
AFW_DEFINE(const afw_object_t *)
Adaptive Framework Core Internal.
Interface afw_interface implementation declares.
Interface afw_interface implementation declares.
struct afw_expression_s afw_expression_t
#define AFW_UTF8_LITERAL(A_STRING)
String literal initializer.
int afw_log_priority_mask_t
afw_utf8_octet_t afw_utf8_z_t
NFC normalized UTF-8 null terminated string.
char afw_utf8_octet_t
8 bits of utf-8 codepoint.
apr_size_t afw_size_t
size_t.
enum afw_log_priority_e afw_log_priority_t
Log levels. See afw_log.h for more information.
void impl_afw_log_write(const afw_log_t *instance, afw_log_priority_t priority, const afw_utf8_z_t *source_z, const afw_utf8_t *message, afw_xctx_t *xctx)
afw_log_impl_create_cede_p(const afw_log_inf_t *inf, afw_size_t instance_size, const afw_object_t *properties, const afw_pool_t *p, afw_xctx_t *xctx)
Developers should call this in all create functions for afw_log.
afw_log_standard_factory_get()
Get the factory for log type standard.
#define afw_pool_release(instance, xctx)
Call method release of interface afw_pool.
FILE * stdout_fd
Open file descriptor used for writing standard output. Default stdout.
Interface afw_log_factory public struct.
Struct for afw_log_impl_t.
afw_log_priority_mask_t mask
Interface afw_log public struct.
Interface afw_object public struct.
Interface afw_pool public struct.
NFC normalized UTF-8 string.
Interface afw_xctx public struct.