Documentation
¶
Index ¶
- Variables
- func DebugSugarLog(args ...interface{})
- func IpToSockaddr(family int, ip net.IP, port int, zone string) (syscall.Sockaddr, error)
- func Logger() *zap.Logger
- func LoggerLevel(lv LogLevel)
- func LoggerOutputPaths(paths []string)
- func Println(a ...any)
- func SockaddrToTCPOrUnixAddr(sa syscall.Sockaddr) net.Addr
- func SockaddrToUDPAddr(sa syscall.Sockaddr) net.Addr
- type LogLevel
Constants ¶
This section is empty.
Variables ¶
View Source
var DEBUG bool
Functions ¶
func DebugSugarLog ¶
func DebugSugarLog(args ...interface{})
func IpToSockaddr ¶
func LoggerLevel ¶
func LoggerLevel(lv LogLevel)
func LoggerOutputPaths ¶
func LoggerOutputPaths(paths []string)
LoggerOutputPaths set where the logs are written to. Paths receive values like "stdout" ,"stderr" or "path/to/file"
func SockaddrToTCPOrUnixAddr ¶
SockaddrToTCPOrUnixAddr converts a Sockaddr to a net.TCPAddr or net.UnixAddr. Returns nil if conversion fails.
Types ¶
Click to show internal directories.
Click to hide internal directories.