Documentation ¶
Index ¶
- Constants
- Variables
- func FromContext(ctx context.Context) *slog.Logger
- func New(level string, noLogFile bool) *slog.Logger
- func Reset() error
- func StartProfiling(flags ProfileFlags) error
- func StopProfiling(flags ProfileFlags) error
- func ToContext(ctx context.Context, logger *slog.Logger) context.Context
- type ProfileFlags
Constants ¶
View Source
const ( LevelTrace = slog.Level(-8) LevelFatal = slog.Level(12) )
Variables ¶
View Source
var DefaultLogFile = filepath.Join(xdg.ConfigHome, "go-hass-anything .log")
View Source
var LevelNames = map[slog.Leveler]string{ LevelTrace: "TRACE", LevelFatal: "FATAL", }
Functions ¶
func StartProfiling ¶
func StartProfiling(flags ProfileFlags) error
func StopProfiling ¶
func StopProfiling(flags ProfileFlags) error
Types ¶
type ProfileFlags ¶
Click to show internal directories.
Click to hide internal directories.