log

package
v0.0.0-...-4245874 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogRetentionDays    = 30
	LogRetentionMaxSize = 10 // megabytes

)

Variables

This section is empty.

Functions

func BaseLogCoreWithLogFile

func BaseLogCoreWithLogFile(level zapcore.Level, filename string) zapcore.Core

Setup Custom Log Core with custom filename

func BaseZapConfig

func BaseZapConfig(level zapcore.Level) zap.Config

Setup New Common Zap Logger

func NewCommonLogger

func NewCommonLogger() *zap.Logger

Generate new zap logger

func NewLoggerForHandler

func NewLoggerForHandler(handlerName string) *zap.Logger

func NewLoggerForService

func NewLoggerForService(serviceName string) *zap.Logger

func NewLoggerForSource

func NewLoggerForSource(sourceName string) *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