Documentation
¶
Index ¶
- Constants
- func Error(args ...any)
- func Errorf(template string, args ...any)
- func Fatal(args ...any)
- func GetLogStr(needLog string) string
- func GetMessage(template string, fmtArgs []any) string
- func Info(args ...any)
- func Infof(template string, args ...any)
- 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 ...any)
- func Sync()
- func Warn(args ...any)
- func Warnf(template string, args ...any)
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.