Versions in this module Expand all Collapse all v1 v1.24.4 Aug 19, 2016 Changes in this version + const DebugLevel + const ErrorLevel + const InfoLevel + const NoneLevel + const WarningLevel + func Access(from, to interface{}, status AccessStatus, reason interface{}) + func Close() + func Debug(v ...interface{}) + func Error(v ...interface{}) + func Info(v ...interface{}) + func InitAccessLogger(file string) error + func InitErrorLogger(file string) error + func SetLogLevel(level LogLevel) + func Warning(v ...interface{}) + type LogLevel int v1.10.0 Aug 28, 2020 Changes in this version + const AccessAccepted + const AccessRejected + var File_v2ray_com_core_common_log_log_proto protoreflect.FileDescriptor + var Severity_name = map[int32]string + var Severity_value = map[string]int32 + func ContextWithAccessMessage(ctx context.Context, accessMessage *AccessMessage) context.Context + func Record(msg Message) + func RegisterHandler(handler Handler) + type AccessMessage struct + Detour string + Email string + From interface{} + Reason interface{} + Status AccessStatus + To interface{} + func AccessMessageFromContext(ctx context.Context) *AccessMessage + func (m *AccessMessage) String() string + type AccessStatus string + type GeneralMessage struct + Content interface{} + Severity Severity + func (m *GeneralMessage) String() string + type Handler interface + Handle func(msg Message) + func NewLogger(logWriterCreator WriterCreator) Handler + type Message interface + String func() string + type Severity int32 + const Severity_Debug + const Severity_Error + const Severity_Info + const Severity_Unknown + const Severity_Warning + func (Severity) Descriptor() protoreflect.EnumDescriptor + func (Severity) EnumDescriptor() ([]byte, []int) + func (Severity) Type() protoreflect.EnumType + func (x Severity) Enum() *Severity + func (x Severity) Number() protoreflect.EnumNumber + func (x Severity) String() string + type Writer interface + Write func(string) error + type WriterCreator func() Writer + func CreateFileLogWriter(path string) (WriterCreator, error) + func CreateStderrLogWriter() WriterCreator + func CreateStdoutLogWriter() WriterCreator Incompatible versions in this module v3.50.2+incompatible Oct 29, 2018