src/server/config/logging.c

Fri, 01 Nov 2024 12:25:52 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Fri, 01 Nov 2024 12:25:52 +0100
changeset 562
69fc4ecc5f60
parent 453
4586d534f9b5
permissions
-rw-r--r--

fix pgext uses a wrong field number, if the column has the same name as a resource or property column

//
// Created by Olaf Wintermann on 23.02.23.
//

#include "logging.h"


#include <stdio.h>

int default_log_func(int degree, const char *format, va_list args) {
    vprintf(format, args);
    return 0;
}

static cfg_logfunc logfunc = default_log_func;

int ws_cfg_log(int degree, const char *format, ...) {
    va_list args;
    va_start(args, format);
    int ret = logfunc(degree, format, args);
    va_end(args);
    return ret;
}

void ws_cfg_set_logfunc(cfg_logfunc func) {
    logfunc = func;
}

mercurial