logging

package
v1.3.48-hf04 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogErrAsErrorExceptAsDebugIfClosingError added in v1.3.37

func LogErrAsErrorExceptAsDebugIfClosingError(logInstance logger.Logger, err error, message string, args ...interface{})

LogErrAsErrorExceptAsDebugIfClosingError logs an error

func LogErrAsWarnExceptAsDebugIfClosingError added in v1.3.37

func LogErrAsWarnExceptAsDebugIfClosingError(logInstance logger.Logger, err error, message string, args ...interface{})

LogErrAsWarnExceptAsDebugIfClosingError logs an error

func NewFileLogging

func NewFileLogging(args ArgsFileLogging) (*fileLogging, error)

NewFileLogging creates a file log watcher used to break the log file into multiple smaller files

Types

type ArgsFileLogging added in v1.3.18

type ArgsFileLogging struct {
	WorkingDir      string
	DefaultLogsPath string
	LogFilePrefix   string
}

ArgsFileLogging is the argument for the file logger

Jump to

Keyboard shortcuts

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