Documentation ¶
Index ¶
- Constants
- func Init(opts ...ConfigOption) (*zap.Logger, string, error)
- func LogLevelHttpServer(config *zaplogConfig, level zap.AtomicLevel) string
- type ConfigOption
- func SetCompress(compress bool) ConfigOption
- func SetFiled(key, value string) ConfigOption
- func SetIsDevelop(flag bool) ConfigOption
- func SetListenAddr(listenAddr string) ConfigOption
- func SetLogApiPath(logApiPath string) ConfigOption
- func SetLogPath(path string) ConfigOption
- func SetMaxAge(age int) ConfigOption
- func SetMaxBackups(backups int) ConfigOption
- func SetMaxSize(size int) ConfigOption
Constants ¶
View Source
const (
LOGPATH = ""
)
Variables ¶
This section is empty.
Functions ¶
func LogLevelHttpServer ¶
func LogLevelHttpServer(config *zaplogConfig, level zap.AtomicLevel) string
Types ¶
type ConfigOption ¶
type ConfigOption interface {
// contains filtered or unexported methods
}
func SetCompress ¶
func SetCompress(compress bool) ConfigOption
func SetFiled ¶
func SetFiled(key, value string) ConfigOption
func SetIsDevelop ¶
func SetIsDevelop(flag bool) ConfigOption
func SetListenAddr ¶
func SetListenAddr(listenAddr string) ConfigOption
func SetLogApiPath ¶
func SetLogApiPath(logApiPath string) ConfigOption
func SetLogPath ¶
func SetLogPath(path string) ConfigOption
func SetMaxAge ¶
func SetMaxAge(age int) ConfigOption
func SetMaxBackups ¶
func SetMaxBackups(backups int) ConfigOption
func SetMaxSize ¶
func SetMaxSize(size int) ConfigOption
Click to show internal directories.
Click to hide internal directories.