Subversion Repositories Mokou

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 nishi 1
/* $Id: log.c 4 2024-09-06 09:55:53Z nishi $ */
2
 
3
#include "mk_log.h"
4
 
5
#include <syslog.h>
4 nishi 6
#include <stdio.h>
7
#include <stdbool.h>
2 nishi 8
 
4 nishi 9
bool mk_syslog = true;
10
 
2 nishi 11
void mk_log(const char* log){
4 nishi 12
	if(mk_syslog){
13
		syslog(LOG_INFO, log);
14
	}else{
15
		fprintf(stderr, "%s\n", log);
16
	}
2 nishi 17
}