-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagent.go
More file actions
34 lines (26 loc) · 593 Bytes
/
agent.go
File metadata and controls
34 lines (26 loc) · 593 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright 2020 Uptimedog. All rights reserved.
// Use of this source code is governed by the MIT
// license that can be found in the LICENSE file.
package main
import (
"os"
"github.com/uptimedog/agent/cmd"
log "github.com/sirupsen/logrus"
)
var (
version = "dev"
commit = "none"
date = "unknown"
builtBy = "unknown"
)
func main() {
cmd.Version = version
cmd.Commit = commit
cmd.Date = date
cmd.BuiltBy = builtBy
log.SetOutput(os.Stdout)
log.SetLevel(log.InfoLevel)
log.SetFormatter(&log.JSONFormatter{})
//log.SetFormatter(&log.TextFormatter{})
cmd.Execute()
}