log

package
v0.0.0-...-04d6450 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package log provides logger initialize utilities for the whole project. It will create and set proper logger instances according to config. The underlying logging tool is `zap`. In this package, we config it and also make some extensions for it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLoggers

func InitLoggers(cfg *util.Config)

InitLoggers initializes all logger instances according to user-provided configs Note that this function is protected by a `sync.Once`.

Types

This section is empty.

Directories

Path Synopsis
Package logger holds the mostly used logger instance `GlobalLogger`
Package logger holds the mostly used logger instance `GlobalLogger`
Package util provides logger config and config validation utilities.
Package util provides logger config and config validation utilities.

Jump to

Keyboard shortcuts

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