logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package log allowing to load logger configuration

Index

Constants

View Source
const (
	LogFieldFunc                   string = "func"
	LogFieldFilePath               string = "file"
	LogFieldFilePathExpanded       string = "filePathExpanded"
	LogFieldDirPath                string = "dirPath"
	LogFieldDirPathExpanded        string = "dirPathExpanded"
	LogFieldErr                    string = "err"
	LogFieldLineNumber             string = "lineNumber"
	LogFieldLineContent            string = "line"
	LogFieldTemplateName           string = "templateName"
	LogFieldTemplateData           string = "templateData"
	LogFieldAvailableTemplateFiles string = "availableTemplateFiles"
	LogFieldVariableName           string = "variableName"
	LogFieldVariableValue          string = "variableValue"
)

Variables

This section is empty.

Functions

func Check

func Check(e error)

func DebugCopyIntermediateFile added in v1.0.0

func DebugCopyIntermediateFile(
	targetDir string, basename string, suffix string, tempYamlFile string,
) (err error)

func DebugSaveIntermediateFile added in v1.0.0

func DebugSaveIntermediateFile(
	targetDir string, basename string, suffix string, content string,
) (err error)

func FancyHandleError

func FancyHandleError(err error) bool

this logs the function name as well.

func InitLogger

func InitLogger(level int)

InitLogger initializes the logger in slog instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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