Documentation ¶
Index ¶
- type Config
- type Logger
- type NATSLogger
- func (logger *NATSLogger) Close() error
- func (logger *NATSLogger) Debugf(format string, v ...interface{})
- func (logger *NATSLogger) Errorf(format string, v ...interface{})
- func (logger *NATSLogger) Fatalf(format string, v ...interface{})
- func (logger *NATSLogger) Noticef(format string, v ...interface{})
- func (logger *NATSLogger) Tracef(format string, v ...interface{})
- func (logger *NATSLogger) Warnf(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Debugf(format string, v ...interface{}) Errorf(format string, v ...interface{}) Fatalf(format string, v ...interface{}) Noticef(format string, v ...interface{}) Tracef(format string, v ...interface{}) Warnf(format string, v ...interface{}) Close() error }
Logger interface
func NewNATSLogger ¶
NewNATSLogger creates a new logger that uses the gnatsd library
type NATSLogger ¶
type NATSLogger struct {
// contains filtered or unexported fields
}
NATSLogger - uses the gnatsd logging code
func (*NATSLogger) Close ¶
func (logger *NATSLogger) Close() error
Close forwards to the nats logger
func (*NATSLogger) Debugf ¶
func (logger *NATSLogger) Debugf(format string, v ...interface{})
Debugf forwards to the nats logger
func (*NATSLogger) Errorf ¶
func (logger *NATSLogger) Errorf(format string, v ...interface{})
Errorf forwards to the nats logger
func (*NATSLogger) Fatalf ¶
func (logger *NATSLogger) Fatalf(format string, v ...interface{})
Fatalf forwards to the nats logger
func (*NATSLogger) Noticef ¶
func (logger *NATSLogger) Noticef(format string, v ...interface{})
Noticef forwards to the nats logger
func (*NATSLogger) Tracef ¶
func (logger *NATSLogger) Tracef(format string, v ...interface{})
Tracef forwards to the nats logger
func (*NATSLogger) Warnf ¶
func (logger *NATSLogger) Warnf(format string, v ...interface{})
Warnf forwards to the nats logger
Click to show internal directories.
Click to hide internal directories.