log

package
v0.0.0-...-7ae529c Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KLog

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

KLog is the basic logger struct that contains a file logger instance and stdout logger instance

func (*KLog) Printf

func (log *KLog) Printf(format string, v ...interface{})

Printf calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.

func (*KLog) Println

func (log *KLog) Println(v ...interface{})

Println calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Println.

type Logger

type Logger interface {
	Printf(string, ...interface{})
	Println(...interface{})
}

Logger interfaces functions that the custom log-level logger must have

func New

func New(stdout bool, filePath string, flags int) Logger

New initializes and returns a new instance of Logger

Jump to

Keyboard shortcuts

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