Discover Packages
github.com/KenshiKuo/splog
package
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: May 24, 2023
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Simple logger
splog
is a Go package provides an easy-to-use logger in the style of fmt.Println()
.
It is designed to be lightweight and does not have any external dependencies.
Expand ▾
Collapse ▴
Documentation
¶
func NewLoggerOptions() *loggerOptions
type Logger interface {
Close()
Log(level int , args ...any )
Debug(args ...any )
Info(args ...any )
Warn(args ...any )
Error(args ...any )
Fatal(args ...any )
}
Logger is the interface difinition for a simple logger as used by this library.
func NewLogger(o *loggerOptions) Logger
Source Files
¶
Click to show internal directories.
Click to hide internal directories.