Documentation ¶
Index ¶
- Variables
- func Close() error
- func Debug(msg string, v ...any)
- func Error(msg string, v ...any)
- func IfErr(msg string, f func() error, ignoreErr ...error)
- func Info(msg string, v ...any)
- func NewPath(path string) logPath
- func Output(depth int, lev slog.Level, format string, v ...any)
- func Set(config *protolog.Logcat, path string)
- func Warn(msg string, v ...any)
- type FileWriter
- type Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var OutputStderr bool = true
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
Click to show internal directories.
Click to hide internal directories.