Documentation
¶
Overview ¶
Package logger provides logging functionality for the 3x-ui panel with dual-backend logging (console/syslog and file) and buffered log storage for web UI.
Index ¶
- func CloseLogger()
- func Debug(args ...any)
- func Debugf(format string, args ...any)
- func Error(args ...any)
- func Errorf(format string, args ...any)
- func GetLogs(c int, level string) []string
- func Info(args ...any)
- func Infof(format string, args ...any)
- func InitLogger(level logging.Level)
- func Notice(args ...any)
- func Noticef(format string, args ...any)
- func Warning(args ...any)
- func Warningf(format string, args ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseLogger ¶
func CloseLogger()
CloseLogger closes the log file and cleans up resources. Should be called during application shutdown.
func GetLogs ¶
GetLogs retrieves up to c log entries from the buffer that are at or below the specified level.
func InitLogger ¶
InitLogger initializes dual logging backends: console/syslog and file. Console logging uses the specified level, file logging always uses DEBUG level.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.