Documentation ¶
Index ¶
- Constants
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Fatal(args ...interface{})
- func GetLogStr(needLog string) string
- func GetMessage(template string, fmtArgs []interface{}) string
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func InitLog(fileDir string, serviceName string, port string, console bool, json bool, ...)
- func NewLogInstance(fileDir string, serviceName string, port string, console bool, json bool, ...) *slog.Logger
- func Panic(args ...interface{})
- func Sync()
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
Constants ¶
View Source
const (
DEFAULT_FILE = "log.log"
)
Variables ¶
This section is empty.
Functions ¶
func GetMessage ¶ added in v0.7.0
getMessage format with Sprint, Sprintf, or neither.
func NewLogInstance ¶ added in v0.6.10
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.