Documentation ¶
Index ¶
- func Critical(format string, values ...interface{})
- func Debug(format string, values ...interface{})
- func Info(format string, values ...interface{})
- func Notice(format string, values ...interface{})
- func SetLevel(lvl Level)
- func UseTestLogger(t testing.TB)
- func Warning(format string, values ...interface{})
- type BaseLogger
- type Level
- type Logger
- type TestLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Critical ¶
func Critical(format string, values ...interface{})
Critical prints error informations
func Notice ¶
func Notice(format string, values ...interface{})
Notice prints information that should be seen
func UseTestLogger ¶
UseTestLogger should be used only by unit tests
Types ¶
type BaseLogger ¶
type BaseLogger struct { }
BaseLogger logs on stdout
func (BaseLogger) Logf ¶
func (l BaseLogger) Logf(fmt string, values ...interface{})
Logf logs on stdout
type Logger ¶
type Logger interface {
Logf(fmt string, values ...interface{})
}
Logger defines the logs levels used by RamSQL engine
type TestLogger ¶
type TestLogger struct {
// contains filtered or unexported fields
}
TestLogger uses *testing.T as a backend for RamSQL logs
func (TestLogger) Logf ¶
func (l TestLogger) Logf(fmt string, values ...interface{})
Logf logs in testing log buffer
Click to show internal directories.
Click to hide internal directories.