Documentation ¶
Index ¶
- Constants
- func SetupBasicLogging(debug bool) (err error)
- type LogLevels
- type LogManager
- func (lm *LogManager) CloseLog() (err error)
- func (lm *LogManager) Config(cfg *lc.LogConfig) (err error)
- func (lm *LogManager) ConfigAndSetup(cfg *lc.LogConfig) (err error)
- func (lm *LogManager) Logger() *slog.Logger
- func (lm *LogManager) OpenLog() (err error)
- func (lm *LogManager) SetLevel(levelName string) (err error)
- func (lm *LogManager) SetPath(path string) (err error)
- func (lm *LogManager) SetStyle(styleName string) (err error)
- func (lm *LogManager) Setup() (err error)
- func (lm *LogManager) SetupHandler() (err error)
- type LogStyles
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func SetupBasicLogging ¶
Types ¶
type LogLevels ¶
type LogLevels struct {
// contains filtered or unexported fields
}
func NewLogLevels ¶
func NewLogLevels() (logLevels *LogLevels)
func (*LogLevels) Canonicalize ¶
type LogManager ¶
type LogManager struct {
// contains filtered or unexported fields
}
func NewLogManager ¶
func NewLogManager() (lm *LogManager)
func (*LogManager) CloseLog ¶
func (lm *LogManager) CloseLog() (err error)
func (*LogManager) ConfigAndSetup ¶
func (lm *LogManager) ConfigAndSetup(cfg *lc.LogConfig) (err error)
func (*LogManager) Logger ¶
func (lm *LogManager) Logger() *slog.Logger
func (*LogManager) OpenLog ¶
func (lm *LogManager) OpenLog() (err error)
func (*LogManager) SetLevel ¶
func (lm *LogManager) SetLevel(levelName string) (err error)
func (*LogManager) SetPath ¶
func (lm *LogManager) SetPath(path string) (err error)
func (*LogManager) SetStyle ¶
func (lm *LogManager) SetStyle(styleName string) (err error)
func (*LogManager) Setup ¶
func (lm *LogManager) Setup() (err error)
func (*LogManager) SetupHandler ¶
func (lm *LogManager) SetupHandler() (err error)
type LogStyles ¶
type LogStyles struct {
// contains filtered or unexported fields
}
func NewLogStyles ¶
func NewLogStyles() (logStyles *LogStyles)
func (*LogStyles) Canonicalize ¶
Click to show internal directories.
Click to hide internal directories.