Documentation
¶
Index ¶
- Constants
- type CustomLogger
- func (l *CustomLogger) Close() error
- func (l *CustomLogger) Debug(msg string, args ...any)
- func (l *CustomLogger) Error(msg string, args ...any)
- func (l *CustomLogger) Fatal(msg string, args ...any)
- func (l *CustomLogger) Info(msg string, args ...any)
- func (l *CustomLogger) Warn(msg string, args ...any)
Constants ¶
View Source
const (
LevelFatal = slog.Level(12)
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomLogger ¶
type CustomLogger struct {
// contains filtered or unexported fields
}
func NewLogger ¶
func NewLogger(logPath, moduleName, logLevel string) (*CustomLogger, error)
func (*CustomLogger) Close ¶
func (l *CustomLogger) Close() error
func (*CustomLogger) Debug ¶
func (l *CustomLogger) Debug(msg string, args ...any)
func (*CustomLogger) Error ¶
func (l *CustomLogger) Error(msg string, args ...any)
func (*CustomLogger) Fatal ¶
func (l *CustomLogger) Fatal(msg string, args ...any)
func (*CustomLogger) Info ¶
func (l *CustomLogger) Info(msg string, args ...any)
func (*CustomLogger) Warn ¶
func (l *CustomLogger) Warn(msg string, args ...any)
Click to show internal directories.
Click to hide internal directories.