Documentation ¶
Index ¶
- func Close() error
- func Debugf(format string, v ...any)
- func Debugln(v ...any)
- func Errorf(format string, v ...any)
- func Errorln(v ...any)
- func Infof(format string, v ...any)
- func Infoln(v ...any)
- func IsOutput(l protolog.LogLevel) bool
- func NewLogger(depth int32) *logger
- func Output(depth int, lev protolog.LogLevel, format string, v ...any)
- func Set(config *protolog.Logcat, path string)
- func SetLevel(l protolog.LogLevel)
- func Verbosef(format string, v ...any)
- func Verboseln(v ...any)
- func Warningf(format string, v ...any)
- func Warningln(v ...any)
- type FileWriter
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileWriter ¶
type FileWriter struct {
// contains filtered or unexported fields
}
func NewLogWriter ¶
func NewLogWriter(file string) *FileWriter
func (*FileWriter) Close ¶
func (f *FileWriter) Close() error
type Logger ¶
type Logger interface { SetLevel(protolog.LogLevel) IsOutput(protolog.LogLevel) bool Verbosef(string, ...any) Verboseln(...any) Debugf(string, ...any) Debugln(...any) Infof(string, ...any) Infoln(...any) Warningf(string, ...any) Warningln(...any) Errorf(string, ...any) Errorln(...any) Output(depth int, lev protolog.LogLevel, format string, v ...any) SetOutput(io.Writer) }
Click to show internal directories.
Click to hide internal directories.