{"modulePath":"github.com/onexstack/miniblog","version":"v1.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Constants\n\n```go\nconst (\n\tDebugLevel = iota\n\tInfoLevel\n\tWarnLevel\n\tErrorLevel\n)\n```\n定义日志级别\n\n## Types\n\n```go\ntype Logger interface {\n\tDebug(msg string)\n\tInfo(msg string)\n\tWarn(msg string)\n\tError(msg string)\n}\n```\nLogger 定义日志接口，包含常用日志方法.\n\n```go\nfunc New(level int, prefix string) Logger\n```\nNew 创建一个 customLogger 实例.\n\n","path":"github.com/onexstack/miniblog/examples/logpattern","name":"main","synopsis":"","isRedistributable":true}
