Documentation ¶
Index ¶
- Constants
- type Standard
- func (n *Standard) Debug(args ...interface{})
- func (n *Standard) Debugf(format string, args ...interface{})
- func (n *Standard) Error(args ...interface{})
- func (n *Standard) Errorf(format string, args ...interface{})
- func (n *Standard) Fatal(args ...interface{})
- func (n *Standard) Fatalf(format string, args ...interface{})
- func (n *Standard) Log(args ...interface{})
- func (n *Standard) Logf(format string, args ...interface{})
Constants ¶
const ( NOLOG = iota FATAL ERROR INFO DEBUG )
These are the different logging levels that are supported.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Standard ¶
type Standard struct {
// contains filtered or unexported fields
}
Standard is logging through the standard `log` package It can take an additional configuration element 'level' with string values of 'no_log', 'fatal', 'error' 'info' or 'debug'. The values says which calls to the logger to be actually logged. Saying a later value means that the previous ones should be logged as well - 'info' means that 'fatal' and 'error' should be logged as well.
func (*Standard) Debug ¶
func (n *Standard) Debug(args ...interface{})
Debug is the same as log.Println if level is atleast 'debug'
func (*Standard) Debugf ¶
Debugf is the same as log.Printf, with a newline at the end of format if missing, if level is atleast 'debug'
func (*Standard) Error ¶
func (n *Standard) Error(args ...interface{})
Error is the same as log.Println if level is atleast 'error'
func (*Standard) Errorf ¶
Errorf is the same as log.Printf, with a newline at the end of format if missing, if level is atleast 'error'
func (*Standard) Fatal ¶
func (n *Standard) Fatal(args ...interface{})
Fatal is the same as log.Fatalln if level is atleast 'fatal'
func (*Standard) Fatalf ¶
Fatalf is the same as log.Fatalf, with a newline at the end of format if missing, if level is atleast 'fatal'