2
0

v2 is go!

This commit is contained in:
Nate Finch
2014-06-27 06:04:13 -04:00
parent a6f35bab25
commit 78d709c0cc
3 changed files with 347 additions and 314 deletions
+2 -3
View File
@@ -10,9 +10,8 @@ import (
// the SetOutput function when your application starts.
func Example() {
log.SetOutput(&lumberjack.Logger{
Dir: "/var/log/myapp/",
NameFormat: "2006-01-02T15-04-05.000.log",
MaxSize: lumberjack.Gigabyte,
Filename: "/var/log/myapp/foo.log",
MaxSize: 500, // megabytes
MaxBackups: 3,
MaxAge: 28,
})