mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 05:37:38 +03:00
Switch to Go modules
This commit is contained in:
parent
0a65a658b6
commit
c3e29c2a60
104 changed files with 563 additions and 110488 deletions
6
vendor/gopkg.in/natefinch/lumberjack.v2/.travis.yml
generated
vendored
Normal file
6
vendor/gopkg.in/natefinch/lumberjack.v2/.travis.yml
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
language: go
|
||||
|
||||
go:
|
||||
- 1.8
|
||||
- 1.7
|
||||
- 1.6
|
7
vendor/gopkg.in/natefinch/lumberjack.v2/README.md
generated
vendored
7
vendor/gopkg.in/natefinch/lumberjack.v2/README.md
generated
vendored
|
@ -1,4 +1,4 @@
|
|||
# lumberjack [](https://godoc.org/gopkg.in/natefinch/lumberjack.v2) [](https://drone.io/github.com/natefinch/lumberjack/latest) [](https://ci.appveyor.com/project/natefinch/lumberjack) [](https://coveralls.io/r/natefinch/lumberjack?branch=v2.0)
|
||||
# lumberjack [](https://godoc.org/gopkg.in/natefinch/lumberjack.v2) [](https://travis-ci.org/natefinch/lumberjack) [](https://ci.appveyor.com/project/natefinch/lumberjack) [](https://coveralls.io/r/natefinch/lumberjack?branch=v2.0)
|
||||
|
||||
### Lumberjack is a Go package for writing logs to rolling files.
|
||||
|
||||
|
@ -37,6 +37,7 @@ log.SetOutput(&lumberjack.Logger{
|
|||
MaxSize: 500, // megabytes
|
||||
MaxBackups: 3,
|
||||
MaxAge: 28, //days
|
||||
Compress: true, // disabled by default
|
||||
})
|
||||
```
|
||||
|
||||
|
@ -70,6 +71,10 @@ type Logger struct {
|
|||
// backup files is the computer's local time. The default is to use UTC
|
||||
// time.
|
||||
LocalTime bool `json:"localtime" yaml:"localtime"`
|
||||
|
||||
// Compress determines if the rotated log files should be compressed
|
||||
// using gzip. The default is not to perform compression.
|
||||
Compress bool `json:"compress" yaml:"compress"`
|
||||
// contains filtered or unexported fields
|
||||
}
|
||||
```
|
||||
|
|
2
vendor/gopkg.in/natefinch/lumberjack.v2/lumberjack.go
generated
vendored
2
vendor/gopkg.in/natefinch/lumberjack.v2/lumberjack.go
generated
vendored
|
@ -104,7 +104,7 @@ type Logger struct {
|
|||
LocalTime bool `json:"localtime" yaml:"localtime"`
|
||||
|
||||
// Compress determines if the rotated log files should be compressed
|
||||
// using gzip.
|
||||
// using gzip. The default is not to perform compression.
|
||||
Compress bool `json:"compress" yaml:"compress"`
|
||||
|
||||
size int64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue