Documentation ¶
Index ¶
- type DefaultLogger
- func (d DefaultLogger) BuildMessage(message string) string
- func (d DefaultLogger) BuildMessageWithDetails(message string, details string) string
- func (d DefaultLogger) BuildMessageWithDetailsAndStatus(message string, details string, status string) string
- func (d DefaultLogger) LogMessage(message string)
- func (d DefaultLogger) LogMessageWithDetails(message string, details string)
- func (d DefaultLogger) LogMessageWithDetailsAndStatus(message string, details string, status string)
- type Logger
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultLogger ¶
DefaultLogger is a logger that logs messages
func NewDefaultLogger ¶
func NewDefaultLogger(name string) DefaultLogger
NewDefaultLogger creates a new logger
func (DefaultLogger) BuildMessage ¶
func (d DefaultLogger) BuildMessage(message string) string
BuildMessage creates a string that contains a message that could be either a success or an error
func (DefaultLogger) BuildMessageWithDetails ¶
func (d DefaultLogger) BuildMessageWithDetails( message string, details string, ) string
BuildMessageWithDetails creates a string that contains a message with details
func (DefaultLogger) BuildMessageWithDetailsAndStatus ¶ added in v0.6.4
func (d DefaultLogger) BuildMessageWithDetailsAndStatus( message string, details string, status string, ) string
BuildMessageWithDetailsAndStatus creates a string that contains a message with details and a status
func (DefaultLogger) LogMessage ¶
func (d DefaultLogger) LogMessage(message string)
LogMessage logs a message
func (DefaultLogger) LogMessageWithDetails ¶
func (d DefaultLogger) LogMessageWithDetails(message string, details string)
LogMessageWithDetails logs a message with details
func (DefaultLogger) LogMessageWithDetailsAndStatus ¶ added in v0.6.4
func (d DefaultLogger) LogMessageWithDetailsAndStatus( message string, details string, status string, )
LogMessageWithDetailsAndStatus logs a message with details and a status
type Logger ¶
type Logger interface { BuildMessage(message string) string BuildMessageWithDetails(message string, details string) string BuildMessageWithDetailsAndStatus( message string, details string, status string) string LogMessage(message string) LogMessageWithDetails(message string, details string) LogMessageWithDetailsAndStatus( message string, details string, status string) }
Logger is an interface for logging messages
Click to show internal directories.
Click to hide internal directories.