Categorygithub.com/litsea/logger
modulepackage
1.0.1
Repository: https://github.com/litsea/logger.git
Documentation: pkg.go.dev

# README

logger

Initial logger by viper

Quick Start

viper.SetConfigName("config")
viper.AddConfigPath(".")
if err := viper.ReadInConfig(); err != nil {
    fmt.Println("read config failed: ", err)
    os.Exit(1)
}

v := viper.Sub("log")
if err := logger.NewLogger(v, logger.DriverZap); err != nil {
    fmt.Println("init logger failed: ", err)
    os.Exit(1)
}

logger.Info("Logger initialized")

Log driver

Configuration

see: config.yml

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author