logger

package
v1.160.5 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel string
const (
	LogLevelOff     LogLevel = "Off"
	LogLevelTrace   LogLevel = "Trace"
	LogLevelDebug   LogLevel = "Debug"
	LogLevelInfo    LogLevel = "Info"
	LogLevelWarning LogLevel = "Warning"
)

func ParseLogLevel

func ParseLogLevel(logLevel string) (LogLevel, error)

type Logger

type Logger struct {
	LogLevel LogLevel
	File     string
}

func NewLogger

func NewLogger(logLevel LogLevel, file string) (*Logger, error)

func NewLoggerFromCliConfig

func NewLoggerFromCliConfig(cfg schema.AtmosConfiguration) (*Logger, error)

func (*Logger) Debug

func (l *Logger) Debug(message string)

func (*Logger) Error

func (l *Logger) Error(err error)

func (*Logger) Info

func (l *Logger) Info(message string)

func (*Logger) SetLogLevel

func (l *Logger) SetLogLevel(logLevel LogLevel) error

func (*Logger) Trace

func (l *Logger) Trace(message string)

func (*Logger) Warning

func (l *Logger) Warning(message string)

Jump to

Keyboard shortcuts

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