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