Skip to content
Snippets Groups Projects
Select Git revision
  • 5e4e0e2a388c3342a39ea0b651560a06a8352a2f
  • master default protected
  • lintian-fixes
  • renovate/github.com-miekg-dns-1.x
  • renovate/golang.org-x-crypto-digest
5 results

config.go

Blame
  • Forked from ai3 / tools / acmeserver
    Source project has a limited visibility.
    logging.go 251 B
    package audit
    
    import (
    	"log"
    	"log/syslog"
    )
    
    // A very simple way of logging to syslog (with a single priority).
    func SetupSyslog() {
    	if l, err := syslog.New(syslog.LOG_ERR, ""); err == nil {
    		log.SetOutput(l)
    		log.SetFlags(log.Lshortfile)
    	}
    }