diff --git a/go.mod b/go.mod index 2cd4924..c63e57a 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,3 @@ -module github.com/natefinch/lumberjack - -require github.com/BurntSushi/toml v0.3.1 +module gopkg.in/natefinch/lumberjack.v2 go 1.13 diff --git a/go.sum b/go.sum index 9cb2df8..e69de29 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +0,0 @@ -github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= diff --git a/lumberjack_test.go b/lumberjack_test.go index b90bf2f..f89756c 100644 --- a/lumberjack_test.go +++ b/lumberjack_test.go @@ -10,8 +10,6 @@ import ( "path/filepath" "testing" "time" - - "github.com/BurntSushi/toml" ) // !!!NOTE!!! @@ -709,27 +707,6 @@ func TestJson(t *testing.T) { equals(true, l.Compress, t) } -func TestToml(t *testing.T) { - data := ` -filename = "foo" -maxsize = 5 -maxage = 10 -maxbackups = 3 -localtime = true -compress = true`[1:] - - l := Logger{} - md, err := toml.Decode(data, &l) - isNil(err, t) - equals("foo", l.Filename, t) - equals(5, l.MaxSize, t) - equals(10, l.MaxAge, t) - equals(3, l.MaxBackups, t) - equals(true, l.LocalTime, t) - equals(true, l.Compress, t) - equals(0, len(md.Undecoded()), t) -} - // makeTempDir creates a file with a semi-unique name in the OS temp directory. // It should be based on the name of the test, to keep parallel tests from // colliding, and must be cleaned up after the test is finished.