Documentation
¶
Overview ¶
======================================================================= logging_context.go Created: Sat Aug 09 04:10:06 PDT 2014 @507 /Internet Time/ :mode=Google go:tabSize=3:indentSize=3:
Modified 2015.6.5: added map and stack.
Purpose: ======================================================================
Index ¶
- Variables
- type LoggingContext
- func (lc *LoggingContext) AddLogger(name string, lfpath string) error
- func (lc *LoggingContext) AddLoggerFromString(name string, lcfg string) error
- func (lc *LoggingContext) Criticalf(lname string, f string, p ...interface{}) error
- func (lc *LoggingContext) Debugf(lname string, f string, p ...interface{})
- func (lc *LoggingContext) Default() error
- func (lc *LoggingContext) Errorf(lname string, f string, p ...interface{}) error
- func (lc *LoggingContext) Fatalf(lname string, f string, p ...interface{})
- func (lc *LoggingContext) Flush()
- func (lc *LoggingContext) Infof(lname string, f string, p ...interface{})
- func (lc *LoggingContext) Panicf(lname string, f string, p ...interface{})
- func (lc *LoggingContext) Pop() (error, bool)
- func (lc *LoggingContext) Push(name string) (error, bool)
- func (lc *LoggingContext) SwitchTo(name string) (error, bool)
- func (lc *LoggingContext) Tracef(lname string, f string, p ...interface{})
- func (lc *LoggingContext) Warnf(lname string, f string, p ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
var LoggingContextCount int
Functions ¶
This section is empty.
Types ¶
type LoggingContext ¶
type LoggingContext struct {
Name string
Cls string
Usable bool
// contains filtered or unexported fields
}
func NewLoggingContext ¶
func NewLoggingContext() *LoggingContext
======================================================================
func (*LoggingContext) AddLogger ¶
func (lc *LoggingContext) AddLogger(name string, lfpath string) error
======================================================================
func (*LoggingContext) AddLoggerFromString ¶
func (lc *LoggingContext) AddLoggerFromString(name string, lcfg string) error
======================================================================
func (*LoggingContext) Criticalf ¶
func (lc *LoggingContext) Criticalf(lname string, f string, p ...interface{}) error
======================================================================
func (*LoggingContext) Debugf ¶
func (lc *LoggingContext) Debugf(lname string, f string, p ...interface{})
======================================================================
func (*LoggingContext) Default ¶
func (lc *LoggingContext) Default() error
======================================================================
func (*LoggingContext) Errorf ¶
func (lc *LoggingContext) Errorf(lname string, f string, p ...interface{}) error
======================================================================
func (*LoggingContext) Fatalf ¶
func (lc *LoggingContext) Fatalf(lname string, f string, p ...interface{})
======================================================================
func (*LoggingContext) Flush ¶
func (lc *LoggingContext) Flush()
======================================================================
func (*LoggingContext) Infof ¶
func (lc *LoggingContext) Infof(lname string, f string, p ...interface{})
======================================================================
func (*LoggingContext) Panicf ¶
func (lc *LoggingContext) Panicf(lname string, f string, p ...interface{})
======================================================================
func (*LoggingContext) Pop ¶
func (lc *LoggingContext) Pop() (error, bool)
======================================================================
If second return arg == true, logging will continue, regardless of error.
======================================================================
func (*LoggingContext) Push ¶
func (lc *LoggingContext) Push(name string) (error, bool)
======================================================================
If second return arg == true, logging will continue, regardless of error.
======================================================================
func (*LoggingContext) SwitchTo ¶
func (lc *LoggingContext) SwitchTo(name string) (error, bool)
======================================================================
If second return arg == true, logging will continue, regardless of error.
======================================================================
func (*LoggingContext) Tracef ¶
func (lc *LoggingContext) Tracef(lname string, f string, p ...interface{})
======================================================================