1package forestdb
2
3// Logger interface
4type Logger interface {
5	// Warnings, logged by default.
6	Warnf(format string, v ...interface{})
7	// Errors, logged by default.
8	Errorf(format string, v ...interface{})
9	// Fatal errors. Will not terminate execution.
10	Fatalf(format string, v ...interface{})
11	// Informational messages.
12	Infof(format string, v ...interface{})
13	// Timing utility
14	Debugf(format string, v ...interface{})
15	// Program execution tracing. Not logged by default
16	Tracef(format string, v ...interface{})
17}
18
19type Dummy struct {
20}
21
22func (*Dummy) Fatalf(_ string, _ ...interface{}) {
23}
24
25func (*Dummy) Errorf(_ string, _ ...interface{}) {
26}
27
28func (*Dummy) Warnf(_ string, _ ...interface{}) {
29}
30
31func (*Dummy) Infof(_ string, _ ...interface{}) {
32}
33
34func (*Dummy) Debugf(_ string, _ ...interface{}) {
35}
36
37func (*Dummy) Tracef(_ string, _ ...interface{}) {
38}
39
40// Logger to use
41var Log Logger = &Dummy{}
42