Documentation
¶
Index ¶
- type Config
- type LoggerService
- func (l *LoggerService) Debug(message string, args ...any)
- func (l *LoggerService) Error(message string, args ...any)
- func (l *LoggerService) Info(message string, args ...any)
- func (l *LoggerService) Name() string
- func (l *LoggerService) OnShutdown() error
- func (l *LoggerService) OnStartup(ctx context.Context, options application.ServiceOptions) error
- func (l *LoggerService) SetLogLevel(level slog.Level)
- func (l *LoggerService) Warning(message string, args ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggerService ¶
type LoggerService struct {
// contains filtered or unexported fields
}
func New ¶
func New() *LoggerService
func NewLoggerService ¶
func NewLoggerService(config *Config) *LoggerService
func (*LoggerService) Debug ¶
func (l *LoggerService) Debug(message string, args ...any)
func (*LoggerService) Error ¶
func (l *LoggerService) Error(message string, args ...any)
func (*LoggerService) Info ¶
func (l *LoggerService) Info(message string, args ...any)
func (*LoggerService) Name ¶
func (l *LoggerService) Name() string
Name returns the name of the plugin. You should use the go module format e.g. github.com/myuser/myplugin
func (*LoggerService) OnShutdown ¶
func (l *LoggerService) OnShutdown() error
OnShutdown is called when the app is shutting down You can use this to clean up any resources you have allocated
func (*LoggerService) OnStartup ¶
func (l *LoggerService) OnStartup(ctx context.Context, options application.ServiceOptions) error
func (*LoggerService) SetLogLevel ¶
func (l *LoggerService) SetLogLevel(level slog.Level)
func (*LoggerService) Warning ¶
func (l *LoggerService) Warning(message string, args ...any)
Click to show internal directories.
Click to hide internal directories.