{"modulePath":"github.com/https-cert/deploy","version":"v0.7.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package logger\n\n## Variables\n\n```go\nvar (\n\tLogger *log.Logger\n)\n```\n\n## Functions\n\n```go\nfunc Debug(msg string, args ...interface{})\n```\nDebug 记录调试日志\n\n```go\nfunc Error(msg string, args ...interface{})\n```\nError 记录错误日志\n\n```go\nfunc ErrorLocal(msg string, args ...interface{})\n```\nErrorLocal 仅写入 deploy 本机日志，不向服务端上报可能包含私密诊断的信息。\n\n```go\nfunc Fatal(msg string, args ...interface{})\n```\nFatal 记录致命错误日志并退出\n\n```go\nfunc Info(msg string, args ...interface{})\n```\nInfo 记录信息日志\n\n```go\nfunc InfoLocal(msg string, args ...interface{})\n```\nInfoLocal 仅写入 deploy 本机信息日志，不向服务端上报私密运行参数。\n\n```go\nfunc Init()\n```\nInit 初始化日志\n\n```go\nfunc SetReporter(r *LogReporter)\n```\nSetReporter 设置日志上报器\n\n```go\nfunc SetSensitiveValues(values ...string)\n```\nSetSensitiveValues 设置在线日志必须额外清除的实际配置值，防止第三方 SDK 无字段名回显凭据。\n\n```go\nfunc Warn(msg string, args ...interface{})\n```\nWarn 记录警告日志\n\n```go\nfunc WarnLocal(msg string, args ...interface{})\n```\nWarnLocal 仅写入 deploy 本机警告日志，不向服务端上报私密诊断。\n\n## Types\n\n```go\ntype LogLevel string\n```\nLogLevel 日志级别\n\n```go\nconst (\n\tLevelDebug LogLevel = \"DEBUG\"\n\tLevelInfo  LogLevel = \"INFO\"\n\tLevelWarn  LogLevel = \"WARN\"\n\tLevelError LogLevel = \"ERROR\"\n\tLevelFatal LogLevel = \"FATAL\"\n)\n```\n\n```go\ntype LogReporter struct {\n\tServerURL string // ServerURL 是日志服务基础地址。\n\tClientID  string // ClientID 标识当前部署客户端。\n\tAccessKey string // AccessKey 用于日志接口认证。\n\t// contains filtered or unexported fields\n}\n```\nLogReporter 日志上报器（用于上报到服务端）\n\n","path":"github.com/https-cert/deploy/pkg/logger","name":"logger","synopsis":"","isRedistributable":true}
