package
Version:
v0.1.13
Opens a new window with list of versions in this module.
Published: May 10, 2024
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Debug(args ...interface{})
Debug prints debug message if debug mode is enabled
func Error(args ...interface{})
Error prints error message and exits with code 1
func Info(args ...interface{})
Info prints info message
InitDefault initializes default logger with specific values
func Warn(args ...interface{})
Warn prints warn message
type ILog interface {
Debug(...interface{})
Info(...interface{})
Warn(...interface{})
Error(...interface{})
}
ILog is the simple logger interface
Default creates a new instance of defaultLogger with default values that can be used as a singleton
New creates a new instance of defaultLogger implementing ILog interface
Source Files
¶
Click to show internal directories.
Click to hide internal directories.