// Syslogf records a log in the system in syslog. For Windows it created
// a file and records the logs there.
Syslogf records a log in the system in syslog. For Windows it created
a file and records the logs there.
// Syslogf records a log in the system in syslog . For Windows it created // a file and records the logs there .
func Syslogf(level int, msg string, a ...interface{}) {
	logger, err := syslog.NewLogger(syslog.LOG_LOCAL0|syslogMap[level], 0)
	if err != nil {
		Trail(ERROR, "Hanlder.NewLogger. %s", err.Error())
		return
	}
	if len(msg) != 0 && msg[len(msg)-1] != '\n' {
		msg += "\n"
	}
	logger.Printf(msg, a...)
}
func Syslogf ( level int , msg string , a ... interface { } ) { logger , err := syslog . NewLogger ( syslog . LOG_LOCAL0 | syslogMap [ level ] , 0 ) if err != nil { Trail ( ERROR , " " , err . Error ( ) ) return } if len ( msg ) != 0 && msg [ len ( msg ) - 1 ] != '\n' { msg += " \n " } logger . Printf ( msg , a ... ) }
Syslogf records a log in the system in syslog.
Syslogf records a log in the system in syslog .