logger

package
v0.0.0-...-27cccc6 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package logger provides ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GinLogger

func GinLogger() gin.HandlerFunc

GinLogger 接收gin框架默认的日志

func GinRecovery

func GinRecovery(stack bool) gin.HandlerFunc

GinRecovery recover掉项目可能出现的panic

func Init

func Init(cfg *settings.LogConfig, mode string) (err error)

Init 初始化 Zap logger 配置自己的 logger 并替换 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