xlog

package
v0.0.0-...-b532d83 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiServiceStart = "seamoon api service start"
	ApiServerStart  = "seamoon server start"
)

API 相关日志

View Source
const (
	ServiceSocks5ConnectServer = "service socks5 server handle connect"
	ServiceSocks5Establish     = "service socks5 establish connect"
	ServiceSocks5DisConnect    = "service socks5 disconnect"
	ServiceTorConnectServer    = "service tor server handle connect"
	ServiceTorDisConnect       = "service tor disconnect"
)

SERVICE 相关日志

View Source
const (
	SignalStartProxy  = "signal start proxy listener success"
	SignalSpeedProxy  = "signal speed proxy success"
	SignalStopProxy   = "signal stop proxy success"
	SignalDeleteProxy = "signal delete proxy success"

	SignalSyncProvider   = "signal sync provider success"
	SignalDeleteProvider = "signal delete provider success"

	SignalDeployTunnel = "signal deploy tunnel success"
	SignalStopTunnel   = "signal stop tunnel success"
	SignalDeleteTunnel = "signal delete tunnel success"
)

SIGNAL 相关日志

View Source
const (
	DatabaseInit       = "database not found, start init ......"
	DatabaseConfigInit = "database not found config table, start init ......"
	DatabaseUserInit   = "database not found user table, start init ......"
)

DB 相关日志

View Source
const (
	ApiCommonError   = "api error"
	ApiServeError    = "api serve error"
	ApiParamsError   = "api request params error"
	ApiParamsExist   = "api request params already exist"
	ApiParamsRequire = "api require params missing"
	ApiServiceError  = "api request service error"
	ApiAuthError     = "api request auth error"
	ApiAuthRequire   = "api require auth missing"
	ApiAuthLimit     = "api request auth limit"
)

API 相关错误

View Source
const (
	// ServiceProtocolNotSupportError * local service
	ServiceProtocolNotSupportError = "service accept proto not support"
	ServiceSocks5ReadMethodError   = "service socks5 read method proto error"
	ServiceSocks5WriteMethodError  = "service socks5 write method proto error"
	ServiceSocks5ReadCmdError      = "service socks5 read command proto error"
	ServiceSocks5DailError         = "service socks5 dial to remote error"
	ServiceSocks5ReplyError        = "service socks5 write to reply success error"

	// ServiceError remote server
	ServiceError          = "service remote error"
	ServiceStatusError    = "service remote status error "
	ServiceTransportError = "service remote transport error"
	ServiceV2rayInitError = "service remote init v2ray error"

	// ServiceDBNeedParamsError error
	ServiceDBNeedParamsError   = "service operation params missing error"
	ServiceDBUpdateStatusError = "service update status error"
	ServiceDBUpdateFiledError  = "service update field error"
	ServiceDBDeleteError       = "service delete status error"
)

SERVICE 相关错误

View Source
const (
	NetworkVersionError   = "network bad version error"
	NetworkAddrTypeError  = "network bad address type error"
	NetworkMethodError    = "network bad method error"
	NetworkTransportError = "network transport error"
)

NETWORK 相关错误

View Source
const (
	SDKFCCreateError         = "sdk create function but not found error"
	SDKFCInfoError           = "sdk get function info error"
	SDKFCDetailError         = "sdk get function detail error"
	SDKTriggerError          = "sdk get function trigger error"
	SDKTriggerUnmarshalError = "sdk unmarshal function trigger error"
)

SDK 相关错误

View Source
const (
	ListenerAcceptError         = "listener unexpect error"
	ListenerDailError           = "listener dail to remote error"
	ListenerV2rayInitError      = "listener init v2ray config error"
	ListenerV2rayTransportError = "listener transport v2ray error"
)

LISTENER 相关错误

View Source
const (
	SignalGetObjError       = "signal try to get object from db error"
	SignalUpdateObjError    = "signal try to update object from db error"
	SignalListenerError     = "signal listener unexpect error"
	SignalRecoverProxyError = "signal try recover active proxy error"
	SignalSpeedProxyError   = "signal try test speed error"
	SignalSyncProviderError = "signal try sync provider error"
	SignalDeployTunError    = "signal try deploy tunnel error"
	SignalStopTunError      = "signal try stop tunnel error"
	SignalDeleteTunError    = "signal try delete tunnel error"
)

SIGNAL 相关错误

View Source
const (
	SDKWaitingFCStatus = "sdk waiting for function create success"
)

SDK 相关日志

View Source
const (
	SignalMissOperationWarn = "signal received unchanged status"
)

Signal 相关告警

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, args ...any)

Debug logs at LevelDebug.

func Error

func Error(msg string, args ...any)

Error logs at LevelError.

func Info

func Info(msg string, args ...any)

Info logs at LevelInfo.

func Logger

func Logger() *logger

func Warn

func Warn(msg string, args ...any)

Warn logs at LevelWarn.

Types

This section is empty.

Jump to

Keyboard shortcuts

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