Documentation ¶
Index ¶
- type Log
- type LogLevel
- type Logger
- func (logger *Logger) Close() error
- func (logger *Logger) Console(message string, a ...interface{})
- func (logger *Logger) ConsoleInfo(message string, a ...interface{})
- func (logger *Logger) Debug(message string, a ...interface{})
- func (logger *Logger) Error(message string, a ...interface{})
- func (logger *Logger) Fatal(message string, a ...interface{})
- func (logger *Logger) Info(message string, a ...interface{})
- func (logger *Logger) Trace(message string, a ...interface{})
- func (logger *Logger) Warning(message string, a ...interface{})
- type MockLogger
- func (logger *MockLogger) Close() error
- func (logger *MockLogger) Console(string, ...interface{})
- func (logger *MockLogger) ConsoleInfo(string, ...interface{})
- func (logger *MockLogger) Debug(string, ...interface{})
- func (logger *MockLogger) Error(string, ...interface{})
- func (logger *MockLogger) Fatal(string, ...interface{})
- func (logger *MockLogger) Info(string, ...interface{})
- func (logger *MockLogger) Trace(string, ...interface{})
- func (logger *MockLogger) Warning(string, ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log interface { Close() error Console(string, ...interface{}) ConsoleInfo(string, ...interface{}) Trace(string, ...interface{}) Debug(string, ...interface{}) Info(string, ...interface{}) Warning(string, ...interface{}) Error(string, ...interface{}) Fatal(string, ...interface{}) }
Log is an interface describing the required functions for a logger.
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a log handler for various levels of logging.
func (*Logger) ConsoleInfo ¶
ConsoleInfo is a helper function that logs to both the console and Info log.
type MockLogger ¶
type MockLogger struct{}
MockLogger is a dummy logger that performs no-ops.
func (*MockLogger) Console ¶
func (logger *MockLogger) Console(string, ...interface{})
Console performs no-op.
func (*MockLogger) ConsoleInfo ¶
func (logger *MockLogger) ConsoleInfo(string, ...interface{})
ConsoleInfo performs no-op.
func (*MockLogger) Debug ¶
func (logger *MockLogger) Debug(string, ...interface{})
Debug performs no-op.
func (*MockLogger) Error ¶
func (logger *MockLogger) Error(string, ...interface{})
Error performs no-op.
func (*MockLogger) Fatal ¶
func (logger *MockLogger) Fatal(string, ...interface{})
Fatal performs no-op.
func (*MockLogger) Info ¶
func (logger *MockLogger) Info(string, ...interface{})
Info performs no-op.
func (*MockLogger) Trace ¶
func (logger *MockLogger) Trace(string, ...interface{})
Trace performs no-op.
func (*MockLogger) Warning ¶
func (logger *MockLogger) Warning(string, ...interface{})
Warning performs no-op.
Click to show internal directories.
Click to hide internal directories.