FreeBSD/contrib/ntp/sntp/tests/t-log.c
//writes log files in your own file instead of syslog! (MAY BE USEFUL TO SUPPRESS ERROR MESSAGES!)
writes log files in your own file instead of syslog. (MAY BE USEFUL TO SUPPRESS ERROR MESSAGES!)
writes log files in your own file instead of syslog . ( MAY BE USEFUL TO SUPPRESS ERROR MESSAGES! )
void
testOpenLogfileTest(void)
{
	sntp_init_logging("TEST_PROGNAME2"); 
	open_logfile("testLogfile.log");
	msyslog(LOG_ERR, "Cannot open log file %s","abcXX");
	return;
}
void testOpenLogfileTest ( void ) { sntp_init_logging ( " " ) ; open_logfile ( " " ) ; msyslog ( LOG_ERR , " " , " " ) ; return ; }
writes log files in your own file instead of syslog!
writes log files in your own file instead of syslog!
//this name is consistent through the entire program unless changed //open_logfile("/var/log/syslog"); //this gives me "Permission Denied" when i do %m //cleanup_log(); //unnecessary  after log.c fix!