logging

package
v0.0.0-...-fceb17a Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Encoding can be one "json" or "console". Defaults to "console"
	Encoding string `json:"encoding"`

	// Level configures the log level
	Level string `json:"level"`

	// Colors configures if color output should be enabled
	Colors *bool `json:"colors"`

	// time format
	TimeFormat string `json:"time_format"`
}

func (*Config) CreateLogger

func (c *Config) CreateLogger() *zap.SugaredLogger

Jump to

Keyboard shortcuts

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