rglog

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogLevel added in v1.0.15

func GetLogLevel() string

func RequestLog

func RequestLog(uniqId string, typ LogLevel, any ...interface{})

func SetLogLever added in v1.0.15

func SetLogLever(param string)

func Start

func Start()

func SystemError

func SystemError(any ...interface{})

func SystemInfo

func SystemInfo(any ...interface{})

Types

type Client

type Client struct {
	UniqId string
	sync.Pool
}

func New

func New(uniqId string) *Client

func (*Client) Debug

func (c *Client) Debug(any ...interface{})

func (*Client) Error

func (c *Client) Error(any ...interface{})

func (*Client) Info

func (c *Client) Info(any ...interface{})

func (*Client) Warn

func (c *Client) Warn(any ...interface{})

type LogLevel added in v1.0.18

type LogLevel string
var (
	LevelDebug    LogLevel = "DEBUG"
	LevelInfo     LogLevel = "INFO"
	LevelWarn     LogLevel = "WARN"
	LevelError    LogLevel = "ERROR"
	LevelRequest  LogLevel = "REQUEST"
	LevelResponse LogLevel = "RESPONSE"
	LevelSystem   LogLevel = "SYSTEM"
	LevelNo       LogLevel = "NO"
)

Jump to

Keyboard shortcuts

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