cockroach: github.com/abhinavdahiya/cockroach/util/log/logflags Index | Files

package logflags

import "github.com/abhinavdahiya/cockroach/util/log/logflags"

Index

Package Files

logflags.go

Constants

const (
    LogToStderrName     = "logtostderr"
    AlsoLogToStderrName = "alsologtostderr"
    NoColorName         = "no-color"
    VerbosityName       = "verbosity"
    VModuleName         = "vmodule"
    LogBacktraceAtName  = "log-backtrace-at"
    LogDirName          = "log-dir"
)

LogToStderrName and others are flag names.

func InitFlags Uses

func InitFlags(mu sync.Locker, toStderr *bool, logDir flag.Value,
    nocolor *bool, verbosity, vmodule, traceLocation flag.Value)

InitFlags creates logging flags which update the given variables. The passed mutex is locked while the boolean variables are accessed during flag updates.

Package logflags imports 3 packages (graph). Updated 2017-03-13. Refresh now. Tools for package owners. This is a dead-end fork (no commits since the fork).