Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion go/vt/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@

package log

import "github.com/golang/glog"
import (
"flag"
"github.com/golang/glog"
)

// Level is used with V() to test log verbosity.
type Level = glog.Level
Expand Down Expand Up @@ -52,3 +55,7 @@ var (
// FatalDepth formats arguments like fmt.Print and uses depth to choose which call frame to log.
FatalDepth = glog.FatalDepth
)

func init() {
flag.Uint64Var(&glog.MaxSize, "log_rotate_max_size", glog.MaxSize, "size in bytes at which logs are rotated (glog.MaxSize)")
}