logs

package
v0.0.0-...-7371c5b Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ERROR_LOG_FILE_SIZE_MAX = 1024 * 1024

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src string, dst string, maxSize int64) error

func GetLogFilePath

func GetLogFilePath() string

func InitLoggerFile

func InitLoggerFile(filesDir string, fileName string)

func PreserveLogFile

func PreserveLogFile(filesDir string, fileName string)

Types

type Logger

type Logger interface {
	Trace(message string)
	Debug(message string)
	Info(message string)
	Warn(message string)
	Error(message string)
}

func New

func New(caller string) Logger

type LoggerStruct

type LoggerStruct struct {
	// contains filtered or unexported fields
}

func (*LoggerStruct) Debug

func (l *LoggerStruct) Debug(message string)

func (*LoggerStruct) Error

func (l *LoggerStruct) Error(message string)

func (*LoggerStruct) Info

func (l *LoggerStruct) Info(message string)

func (*LoggerStruct) Trace

func (l *LoggerStruct) Trace(message string)

func (*LoggerStruct) Warn

func (l *LoggerStruct) Warn(message string)

Jump to

Keyboard shortcuts

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