bosun.org@v0.0.0-20210513094433-e25bc3e69a1f/cmd/scollector/log_unix.go (about)

     1  // +build !windows,!nacl,!plan9
     2  
     3  package main
     4  
     5  import (
     6  	"bosun.org/_version"
     7  	"bosun.org/slog"
     8  )
     9  
    10  func init() {
    11  	err := slog.SetSyslog("scollector")
    12  	if err != nil {
    13  		slog.Error(err)
    14  	}
    15  	slog.Infof("starting %s", version.GetVersionInfo("scollector"))
    16  }