Documentation ¶
Index ¶
- Constants
- func Debug(args ...interface{})
- func DefaultFile() (*lfshook.LfsHook, error)
- func DefaultWebSocketLog() *lfshook.LfsHook
- func Error(args ...interface{})
- func Fatal(args ...interface{})
- func Info(args ...interface{})
- func LoadConsoleLog()
- func LoadFileLog()
- func LoadLog(codes ...int)
- func LoadWebSocketLog()
- func Read(ws *neffos.Server)
- func Socket(t string, args interface{})
- func Warn(args ...interface{})
- type Message
- type Response
- type WebJSONFormatter
Constants ¶
View Source
const ( DefaultFileName = "logs/log-%Y-%m-%d.log" DefaultFileMaxAge = time.Hour * 24 * 30 DefaultFileRotationTime = time.Hour * 24 )
View Source
const ( DefaultLocalTimeDateFormat = "2006-01-02 15:04:05" ConsoleLog = iota FileLog SocketLog )
Variables ¶
This section is empty.
Functions ¶
func DefaultFile ¶
func DefaultWebSocketLog ¶
func LoadConsoleLog ¶
func LoadConsoleLog()
func LoadFileLog ¶
func LoadFileLog()
func LoadWebSocketLog ¶
func LoadWebSocketLog()
Types ¶
type WebJSONFormatter ¶
type WebJSONFormatter struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.