Documentation
¶
Index ¶
Constants ¶
View Source
const (
// EnvVerbose 启用调试环境变量
EnvVerbose = "CLOUD189_VERBOSE"
)
Variables ¶
View Source
var ( // IsVerbose 是否调试 IsVerbose = os.Getenv(EnvVerbose) == "1" // Outputs 输出 Outputs = []io.Writer{os.Stderr} )
Functions ¶
func TimePrefix ¶
func TimePrefix() string
Types ¶
type CmdVerbose ¶
type CmdVerbose struct {
Module string
}
CmdVerbose 调试
func New ¶
func New(module string) *CmdVerbose
func (*CmdVerbose) Infof ¶
func (pv *CmdVerbose) Infof(format string, a ...interface{})
Infof 提示, 格式输出
func (*CmdVerbose) Warnf ¶
func (pv *CmdVerbose) Warnf(format string, a ...interface{})
Warnf 警告, 格式输出
Click to show internal directories.
Click to hide internal directories.