logutil

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

file_logger.go

  • @Author: 1dayluo
  • @Date: 2023-03-02 20:50:18
  • @LastEditTime: 2023-03-11 23:14:22

logger.go

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultLogger = log.New(os.Stderr, "", log.LstdFlags)
)

Functions

func Init

func Init() error

func Logf

func Logf(format string, v ...interface{})

func SetLogger

func SetLogger(l *log.Logger)

Types

type FileLogger

type FileLogger struct {
	Logger *log.Logger
	File   *os.File
}

func NewFileLogger

func NewFileLogger(filename string) (*FileLogger, error)

func (*FileLogger) Close

func (l *FileLogger) Close() error

Jump to

Keyboard shortcuts

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