stderr.c 322 Bytes
#include <stdio.h>

#include "logger.h"
#include "interface/logger.h"

static
void
logStderr(void * this, logger_level level, const char * const msg)
{
	fprintf(stderr, "[%s] %s\n", logger_level_str[level], msg);
}

INIT_IFACE(Logger, logStderr);
CREATE_CLASS(LoggerStderr, Logger, IFACE(Logger));

// vim: set ts=4 sw=4: