Documentation
¶
Index ¶
- Constants
- func CallerInfo() string
- func Debug(msg string, args ...any)
- func Error(msg string, args ...any)
- func Info(msg string, args ...any)
- func InitLogger(logFilePath string, maxSizeMB int) error
- func Key(msg string, args ...any)
- func NewMultiHandler(handlers ...slog.Handler) slog.Handler
- func Warn(msg string, args ...any)
- type MultiHandler
- type PlainHandler
- type SizeLimitedWriter
Constants ¶
View Source
const (
LevelKey slog.Level = 2
)
Variables ¶
This section is empty.
Functions ¶
func CallerInfo ¶ added in v0.1.5
func CallerInfo() string
func InitLogger ¶
Types ¶
type MultiHandler ¶
type MultiHandler struct {
// contains filtered or unexported fields
}
--- 複数出力用ハンドラ ---
type PlainHandler ¶
type PlainHandler struct {
// contains filtered or unexported fields
}
func NewPlainHandler ¶
func NewPlainHandler(w io.Writer) *PlainHandler
type SizeLimitedWriter ¶
type SizeLimitedWriter struct {
// contains filtered or unexported fields
}
func NewSizeLimitedWriter ¶
func NewSizeLimitedWriter(path string, maxSizeMB int) (*SizeLimitedWriter, error)
Click to show internal directories.
Click to hide internal directories.