Rev 2 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
/* $Id: log.c 4 2024-09-06 09:55:53Z nishi $ */
#include "mk_log.h"
#include <syslog.h>
#include <stdio.h>
#include <stdbool.h>
bool mk_syslog = true;
void mk_log(const char* log){
if(mk_syslog){
syslog(LOG_INFO, log);
}else{
fprintf(stderr, "%s\n", log);
}
}