logger

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package logger

Package logger

适用于Apollo的日志记录器 基于Uber/Go-zap

Index

Constants

View Source
const (
	LoggerPrefix      = "[Apollo]"
	LoggerInitSuccess = "logger init success"
	LoggerInitFailed  = "logger init failed"
)
View Source
const (
	Coredump = "Apollo.coredump"
)

Variables

View Source
var Logger *zap.Logger
View Source
var LoggerSugar *zap.SugaredLogger

Functions

func Check

func Check()

func CoreDump added in v1.1.0

func CoreDump()

CoreDump 在程序主入口记录 重定向os.stderr 仅出错时记录 每次启动时删除旧的coredump

func InitLogger

func InitLogger() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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