add Makefile
This commit is contained in:
parent
0af035c37e
commit
a374751eb8
4 changed files with 45 additions and 5 deletions
|
@ -42,6 +42,10 @@ const (
|
|||
)
|
||||
|
||||
var (
|
||||
// Build information.
|
||||
BuildTime string
|
||||
BuildGitHash string
|
||||
|
||||
// App settings.
|
||||
AppVer string
|
||||
AppName string
|
||||
|
@ -471,6 +475,11 @@ var logLevels = map[string]string{
|
|||
func newLogService() {
|
||||
log.Info("%s %s", AppName, AppVer)
|
||||
|
||||
if len(BuildTime) > 0 {
|
||||
log.Info("Build Time: %s", BuildTime)
|
||||
log.Info("Build Git Hash: %s", BuildGitHash)
|
||||
}
|
||||
|
||||
// Get and check log mode.
|
||||
LogModes = strings.Split(Cfg.Section("log").Key("MODE").MustString("console"), ",")
|
||||
LogConfigs = make([]string, len(LogModes))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue