log

package
v0.0.0-...-1b94cb7 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLogger

func CreateLogger(logFilePath string) (*zap.Logger, error)

Creates a logger instance, the logger file, and sets the logger level based on the CREATE_FULLSTACK_LOG_LVL environment. The logger logs to both a logger file (DEBUG level) and stdout (Info).

func SetLoggerLevel

func SetLoggerLevel(envVarName string, atom zap.AtomicLevel) error

Sets the logger level based on the environment variable. Completely ignore if no env variable set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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