logger

package
v0.0.0-...-c687c81 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(config LogConf) *zap.Logger

InitLogger Вариант инициализации логера

func NewLogger

func NewLogger(config LogConf) *zap.Logger

NewLogger Возвращаем инициализированный логер

Types

type LogConf

type LogConf struct {
	Level      string `yaml:"level" mapstructure:"level"`
	File       string `yaml:"file" mapstructure:"file"`
	FormatJSON bool   `yaml:"format_JSON" mapstructure:"format_JSON"`
}

LogConf стуктура для настройки логирования

type Logger

type Logger *zap.Logger

Logger глобальная переменная для работы

Jump to

Keyboard shortcuts

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