Documentation
¶
Index ¶
- type SupportLogger
- func (log *SupportLogger) Debug(message string, tags ...string)
- func (log *SupportLogger) Error(message string, err error, tags ...string)
- func (log *SupportLogger) Info(message string, tags ...string)
- func (log *SupportLogger) Panic(message string, err error, tags ...string)
- func (log *SupportLogger) Print(e interface{})
- func (log *SupportLogger) Warn(message string, tags ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SupportLogger ¶
SupportLogger is a type for a log with tags
func NewLogger ¶
func NewLogger(tags map[string]interface{}) *SupportLogger
NewLogger creates a creditsLogger instance
func (*SupportLogger) Debug ¶
func (log *SupportLogger) Debug(message string, tags ...string)
Debug logs a message and the related tags, with a DEBUG level.
func (*SupportLogger) Error ¶
func (log *SupportLogger) Error(message string, err error, tags ...string)
Error logs a message and the related tags, with an ERROR level.
func (*SupportLogger) Info ¶
func (log *SupportLogger) Info(message string, tags ...string)
Info logs a message and the related tags, with an INFO level.
func (*SupportLogger) Panic ¶
func (log *SupportLogger) Panic(message string, err error, tags ...string)
Panic logs a message and the related tags, with an ERROR level. Then panics with the same error
func (*SupportLogger) Print ¶
func (log *SupportLogger) Print(e interface{})
Print logs an interface, the related tags, and a formatted stack trace of the goroutine that calls it.
func (*SupportLogger) Warn ¶
func (log *SupportLogger) Warn(message string, tags ...string)
Warn logs a message and the related tags, with a WARN level.
Click to show internal directories.
Click to hide internal directories.