Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultGroup = "API"
DefaultGroup - name to use, usually logs go here, except for things like quant jobs where we want to track the workings of an individual job
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ILogger ¶
type ILogger interface { Printf(level LogLevel, format string, a ...interface{}) Debugf(format string, a ...interface{}) Infof(format string, a ...interface{}) Errorf(format string, a ...interface{}) }
ILogger - Generic logger interface
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger - Structure holding API logger internals
func Init ¶
func Init(logGroupName string, logLevel LogLevel, environmentName string, sess *session.Session) (Logger, error)
Init - initialises the logger, given settings and AWS session
type NullLogger ¶
type NullLogger struct { }
NullLogger - For mocking out in tests
func (NullLogger) Debugf ¶
func (l NullLogger) Debugf(format string, a ...interface{})
func (NullLogger) Errorf ¶
func (l NullLogger) Errorf(format string, a ...interface{})
func (NullLogger) Infof ¶
func (l NullLogger) Infof(format string, a ...interface{})
func (NullLogger) Printf ¶
func (l NullLogger) Printf(level LogLevel, format string, a ...interface{})
type StdOutLogger ¶
type StdOutLogger struct {
// contains filtered or unexported fields
}
StdOutLogger - For mocking out in tests
func (StdOutLogger) Debugf ¶
func (l StdOutLogger) Debugf(format string, a ...interface{})
func (StdOutLogger) Errorf ¶
func (l StdOutLogger) Errorf(format string, a ...interface{})
func (StdOutLogger) Infof ¶
func (l StdOutLogger) Infof(format string, a ...interface{})
func (StdOutLogger) Printf ¶
func (l StdOutLogger) Printf(level LogLevel, format string, a ...interface{})
Click to show internal directories.
Click to hide internal directories.