Documentation ¶
Index ¶
- Constants
- func BuildNewFileLogger() func(i *do.Injector) (*FileLogger, error)
- func BuildNewKoiFileTarget(target *os.File) func(i *do.Injector) (*KoiFileTarget, error)
- func BuildNewLogger(ch uint16) do.Provider[*Logger]
- func BuildNewSysLogger() func(i *do.Injector) (*SysLogger, error)
- func FilterLog(resp <-chan *proto.Response) (<-chan *proto.Response, <-chan *rpl.Log)
- func LogChannel(i *do.Injector, logC <-chan *rpl.Log)
- func Wait(ch <-chan *proto.Response) error
- type FileLogger
- type KoiFileTarget
- type Logger
- func (logger *Logger) Close()
- func (logger *Logger) Debug(args ...any)
- func (logger *Logger) Debugf(format string, args ...any)
- func (logger *Logger) Error(args ...any)
- func (logger *Logger) Errorf(format string, args ...any)
- func (logger *Logger) Fatal(args ...any)
- func (logger *Logger) Fatalf(format string, args ...any)
- func (logger *Logger) Info(args ...any)
- func (logger *Logger) Infof(format string, args ...any)
- func (logger *Logger) Log(level int8, prefix byte, args ...any)
- func (logger *Logger) Logf(level int8, prefix byte, format string, args ...any)
- func (logger *Logger) Logs(level int8, value string)
- func (logger *Logger) Register(target rpl.Target)
- func (logger *Logger) Success(args ...any)
- func (logger *Logger) Successf(format string, args ...any)
- func (logger *Logger) Warn(args ...any)
- func (logger *Logger) Warnf(format string, args ...any)
- type ResponseSender
- type SysLogger
Constants ¶
View Source
const (
ServiceConsoleTarget = "gopkg.ilharper.com/koi/core/logger.ConsoleTarget"
)
View Source
const (
ServiceRemoteReceiver = "gopkg.ilharper.com/koi/core/logger.RemoteReceiver"
)
Variables ¶
This section is empty.
Functions ¶
func BuildNewFileLogger ¶ added in v0.9.0
func BuildNewFileLogger() func(i *do.Injector) (*FileLogger, error)
func BuildNewKoiFileTarget ¶
func BuildNewSysLogger ¶ added in v0.9.0
Types ¶
type FileLogger ¶ added in v0.9.0
type FileLogger struct {
// contains filtered or unexported fields
}
func (*FileLogger) Close ¶ added in v0.9.0
func (fileLogger *FileLogger) Close()
func (*FileLogger) Writer ¶ added in v0.9.0
func (fileLogger *FileLogger) Writer() chan<- *rpl.Log
type KoiFileTarget ¶
type KoiFileTarget struct { Level int8 // contains filtered or unexported fields }
func (*KoiFileTarget) Close ¶
func (consoleTarget *KoiFileTarget) Close()
func (*KoiFileTarget) Writer ¶
func (consoleTarget *KoiFileTarget) Writer() chan<- *rpl.Log
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
type ResponseSender ¶
type ResponseSender struct {
// contains filtered or unexported fields
}
func NewResponseSender ¶
func NewResponseSender(i *do.Injector) (*ResponseSender, error)
func (*ResponseSender) Close ¶
func (responseSender *ResponseSender) Close()
func (*ResponseSender) Writer ¶
func (responseSender *ResponseSender) Writer() chan<- *rpl.Log
Click to show internal directories.
Click to hide internal directories.