logging

package
v0.0.0-...-e0271d0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package logging provides wrappers around zap logging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment int

Environment enumerates predefined logging configurations.

const (
	// ProductionLogger is a short hand for predefined logging configuration for production use.
	ProductionLogger Environment = iota
	// DevelopmentLogger is a short hand for predefined logging configuration for development use.
	DevelopmentLogger
)

type Logger

type Logger struct {
	*zap.SugaredLogger
}

Logger wraps a zap.SugaredLogger.

func CreateDevelopmentLogger

func CreateDevelopmentLogger() *Logger

CreateDevelopmentLogger creates a new development logger.

func CreateProductionLogger

func CreateProductionLogger() *Logger

CreateProductionLogger creates a new production logger.

Jump to

Keyboard shortcuts

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