logging

package
v1.999.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 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

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

LogErrAsErrorExceptAsDebugIfClosingError logs an error

func LogErrAsWarnExceptAsDebugIfClosingError

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

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