Documentation ¶
Index ¶
- func SetLogging(logger LoggingInterface)
- type LoggingInterface
- type NoLogging
- func (l *NoLogging) Debug(args ...interface{})
- func (l *NoLogging) Debugf(format string, args ...interface{})
- func (l *NoLogging) Error(args ...interface{})
- func (l *NoLogging) Errorf(format string, args ...interface{})
- func (l *NoLogging) Info(args ...interface{})
- func (l *NoLogging) Infof(format string, args ...interface{})
- func (l *NoLogging) Trace(args ...interface{})
- func (l *NoLogging) Tracef(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLogging ¶
func SetLogging(logger LoggingInterface)
Sets a custom logging implementation By default NoLogging is used, so no logs are printed This is used by service.SetLogging()
Types ¶
type LoggingInterface ¶
type LoggingInterface interface { Trace(args ...interface{}) Tracef(format string, args ...interface{}) Debug(args ...interface{}) Debugf(format string, args ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) }
LoggingInterface needs to be implemented, if the internal logs should be printed
func Log ¶
func Log() LoggingInterface
Click to show internal directories.
Click to hide internal directories.