logger

package
v0.0.0-...-8eaeb25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*logrus.Logger
	// contains filtered or unexported fields
}
var Log *Logger

func NewLogger

func NewLogger(logFile string) *Logger

func (*Logger) GetLogStream

func (l *Logger) GetLogStream(lines int) (string, error)

func (*Logger) RegisterWebSocketClient

func (l *Logger) RegisterWebSocketClient(conn *websocket.Conn, lines int)

func (*Logger) SetDefaultFormatter

func (l *Logger) SetDefaultFormatter()

func (*Logger) SetTextFormatter

func (l *Logger) SetTextFormatter()

type LoggerWebSocketClient

type LoggerWebSocketClient struct {
	// contains filtered or unexported fields
}

func (*LoggerWebSocketClient) Write

func (c *LoggerWebSocketClient) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL