Codebase list golang-github-jedisct1-dlog / 6e731b8
Update upstream source from tag 'upstream/0.7' Update to upstream version '0.7' with Debian dir 0b9767d70b2720826080237ba1290b9cb26310b8 Eric Dorland 3 years ago
5 changed file(s) with 44 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
0 name: Go
1
2 on:
3 push:
4 branches: [ master ]
5 pull_request:
6 branches: [ master ]
7
8 jobs:
9
10 build:
11 name: Build
12 runs-on: ubuntu-latest
13 steps:
14
15 - name: Set up Go 1.x
16 uses: actions/setup-go@v2
17 with:
18 go-version: ^1.13
19
20 - name: Check out code into the Go module directory
21 uses: actions/checkout@v2
22
23 - name: Get dependencies
24 run: |
25 go get -v -t -d ./...
26 if [ -f Gopkg.toml ]; then
27 curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
28 dep ensure
29 fi
30
31 - name: Build
32 run: go build -v ./...
33
34 - name: Test
35 run: go test -v ./...
+0
-4
.travis.yml less more
0 sudo: false
1 language: go
2 go:
3 - 1.10.2
149149 }
150150 _globals.appName = appName
151151 _globals.syslogFacility = syslogFacility
152 _globals.useSyslog = flag.Bool("syslog", false, "Send logs to the local system logger (Eventlog on Windows, syslog on Unix)")
153 _globals.fileName = flag.String("logfile", "", "Write logs to file")
154 flag.Var(&_globals.logLevel, "loglevel", fmt.Sprintf("Log level (%d-%d)", SeverityDebug, SeverityFatal))
152 _globals.useSyslog = flag.Bool("syslog", false, "Send application logs to the local system logger (Eventlog on Windows, syslog on Unix)")
153 _globals.fileName = flag.String("logfile", "", "Write application logs to file")
154 _globals.truncateLogFile = flag.Bool("logfile-truncate", false, "Truncate the application log file; keep only data from the most recent application launch")
155 flag.Var(&_globals.logLevel, "loglevel", fmt.Sprintf("Application log level (%d-%d)", SeverityDebug, SeverityFatal))
155156 return nil
156157 }
157158
00 module github.com/jedisct1/dlog
11
2 go 1.13
2 go 1.15
33
44 require (
55 github.com/hashicorp/go-syslog v1.0.0
6 golang.org/x/sys v0.0.0-20200602225109-6fdc65e7d980
6 golang.org/x/sys v0.0.0-20201130171929-760e229fe7c5
77 )
00 github.com/hashicorp/go-syslog v1.0.0 h1:KaodqZuhUoZereWVIYmpUgZysurB1kBLX2j0MwMrUAE=
11 github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4=
2 golang.org/x/sys v0.0.0-20200602225109-6fdc65e7d980 h1:OjiUf46hAmXblsZdnoSXsEUSKU8r1UEzcL5RVZ4gO9Y=
3 golang.org/x/sys v0.0.0-20200602225109-6fdc65e7d980/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
2 golang.org/x/sys v0.0.0-20201130171929-760e229fe7c5 h1:dMDtAap8F/+vsyXblqK90iTzYJjNix5MsXDicSYol6w=
3 golang.org/x/sys v0.0.0-20201130171929-760e229fe7c5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=