package
Version:
v0.0.0-...-7ae529c
Opens a new window with list of versions in this module.
Published: Jul 2, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
KLog is the basic logger struct that contains a file logger instance and stdout logger instance
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 (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 interface {
Printf(string, ...interface{})
Println(...interface{})
}
Logger interfaces functions that the custom log-level logger must have
New initializes and returns a new instance of Logger
Source Files
¶
Click to show internal directories.
Click to hide internal directories.