Documentation ¶
Index ¶
- type PluggableLogger
- func (c *PluggableLogger) Debug(msg string, val ...interface{})
- func (c *PluggableLogger) Error(msg string, val ...interface{})
- func (c *PluggableLogger) Info(msg string, val ...interface{})
- func (c *PluggableLogger) Level(level string)
- func (c *PluggableLogger) Trace(msg string, val ...interface{})
- func (c *PluggableLogger) Warn(msg string, val ...interface{})
- type PluggableLoggerInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluggableLogger ¶
PluggableLogger
func (*PluggableLogger) Debug ¶
func (c *PluggableLogger) Debug(msg string, val ...interface{})
Debug
func (*PluggableLogger) Error ¶
func (c *PluggableLogger) Error(msg string, val ...interface{})
Error
func (*PluggableLogger) Level ¶
func (c *PluggableLogger) Level(level string)
Level - ovveride log level
func (*PluggableLogger) Trace ¶
func (c *PluggableLogger) Trace(msg string, val ...interface{})
Trace
type PluggableLoggerInterface ¶
type PluggableLoggerInterface interface { Error(msg string, val ...interface{}) Info(msg string, val ...interface{}) Debug(msg string, val ...interface{}) Trace(msg string, val ...interface{}) Warn(msg string, val ...interface{}) Level(levele string) }
PluggableLoggerInterface - allows us to use other logging systems as long as the interface implementation is adhered to
func New ¶
func New(level string) PluggableLoggerInterface
New - returns a new PluggableLogger instance
Click to show internal directories.
Click to hide internal directories.