Documentation
¶
Index ¶
- func Execute(commandStr string)
- func ExecuteShellCommand(shellCommand string) error
- type LogLevelValue
- type Logger
- type MyLogger
- func (m *MyLogger) Debug(format string, v ...any)
- func (m *MyLogger) Error(format string, v ...any)
- func (m *MyLogger) Fatal(format string, v ...any)
- func (m *MyLogger) Info(format string, v ...any)
- func (m *MyLogger) LogAndReturnError(format string, v ...any) error
- func (m *MyLogger) Trace(format string, v ...any)
- func (m *MyLogger) Warn(format string, v ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteShellCommand ¶
Types ¶
type LogLevelValue ¶
type LogLevelValue int
const ( TRACE LogLevelValue = iota DEBUG INFO WARN ERROR )
var LogLevel LogLevelValue
func (LogLevelValue) String ¶
func (l LogLevelValue) String() string
type Logger ¶
type Logger interface {
Trace(message string, v ...any)
Debug(message string, v ...any)
Info(message string, v ...any)
Warn(message string, v ...any)
Error(message string, v ...any)
Fatal(message string, v ...any)
LogAndReturnError(message string, v ...any) error
}
func ProvideLogger ¶
func ProvideLogger() Logger
type MyLogger ¶
func (*MyLogger) LogAndReturnError ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.