zaplog

package
v0.0.0-...-23bdc36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(logpath, loglevel, serviceName string) *zap.Logger

InitLogger logpath 日志文件路径 loglevel 日志级别

func InitZapLogger

func InitZapLogger() *zap.Logger

InitZapLogger 支持error、warn、info多种日志级别

func ZapLogger

func ZapLogger(logLevel, logPath string) (*zap.Logger, error)

ZapLogger get zap logger

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL