{"modulePath":"github.com/https-cert/deploy","version":"v0.5.0","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 Fatal(msg string, args ...interface{})\n```\nFatal 记录致命错误日志并退出\n\n```go\nfunc Info(msg string, args ...interface{})\n```\nInfo 记录信息日志\n\n```go\nfunc Init()\n```\nInit 初始化日志\n\n```go\nfunc SetReporter(r *LogReporter)\n```\nSetReporter 设置日志上报器\n\n```go\nfunc Warn(msg string, args ...interface{})\n```\nWarn 记录警告日志\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\n\tClientID  string\n\tAccessKey string\n}\n```\nLogReporter 日志上报器（用于上报到服务端）\n\n","path":"github.com/https-cert/deploy/pkg/logger","name":"logger","synopsis":"","isRedistributable":true}
