MySQL  8.0.18
Source Code Documentation
syslog_logger.c File Reference
#include "config.h"
#include <syslog.h>
#include <stdarg.h>
#include <stdio.h>
#include <memcached/extension.h>
#include <memcached/engine.h>
#include "protocol_extension.h"

Functions

static const char * get_name (void)
 
static int map_priority (EXTENSION_LOG_LEVEL severity)
 
static void logger_log (EXTENSION_LOG_LEVEL severity, const void *client_cookie, const char *fmt,...)
 
static void on_log_level (const void *cookie, ENGINE_EVENT_TYPE type, const void *event_data, const void *cb_data)
 
MEMCACHED_PUBLIC_API EXTENSION_ERROR_CODE memcached_extensions_initialize (const char *config, GET_SERVER_API get_server_api)
 

Variables

static EXTENSION_LOG_LEVEL current_log_level = EXTENSION_LOG_WARNING
 
SERVER_HANDLE_V1 * sapi
 
static EXTENSION_LOGGER_DESCRIPTOR descriptor
 

Function Documentation

◆ get_name()

static const char* get_name ( void  )
static

◆ logger_log()

static void logger_log ( EXTENSION_LOG_LEVEL  severity,
const void *  client_cookie,
const char *  fmt,
  ... 
)
static

◆ map_priority()

static int map_priority ( EXTENSION_LOG_LEVEL  severity)
static

◆ memcached_extensions_initialize()

MEMCACHED_PUBLIC_API EXTENSION_ERROR_CODE memcached_extensions_initialize ( const char *  config,
GET_SERVER_API  get_server_api 
)

◆ on_log_level()

static void on_log_level ( const void *  cookie,
ENGINE_EVENT_TYPE  type,
const void *  event_data,
const void *  cb_data 
)
static

Variable Documentation

◆ current_log_level

EXTENSION_LOG_LEVEL current_log_level = EXTENSION_LOG_WARNING
static

◆ descriptor

EXTENSION_LOGGER_DESCRIPTOR descriptor
static
Initial value:
= {
.get_name = get_name,
.log = logger_log
}
static const char * get_name(void)
Definition: syslog_logger.c:13
static void logger_log(EXTENSION_LOG_LEVEL severity, const void *client_cookie, const char *fmt,...)
Definition: syslog_logger.c:38

◆ sapi

SERVER_HANDLE_V1* sapi