logger

package module
v0.0.0-...-161d68b Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: Apache-2.0 Imports: 5 Imported by: 3

README

myLogger

logger for golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

func NewLogger

func NewLogger(process string, fileName string, maxSize int, maxbackups int, maxAge int, compress bool, level int) *Logger

func (*Logger) Child

func (l *Logger) Child(process string) *Logger

func (*Logger) Debug

func (l *Logger) Debug(msg string)

func (*Logger) DebugF

func (l *Logger) DebugF(msg string, a ...any)

func (*Logger) Error

func (l *Logger) Error(msg string)

func (*Logger) ErrorF

func (l *Logger) ErrorF(msg string, a ...any)

func (*Logger) Info

func (l *Logger) Info(msg string)

func (*Logger) InfoF

func (l *Logger) InfoF(msg string, a ...any)

func (*Logger) Warn

func (l *Logger) Warn(msg string)

func (*Logger) WarnF

func (l *Logger) WarnF(msg string, a ...any)

Jump to

Keyboard shortcuts

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