Documentation ¶
Index ¶
- Constants
- type Session
- func (d *Session) DecrementIndent() (self *Session)
- func (d *Session) Error(msg ...interface{})
- func (d *Session) IncrementIndent() (self *Session)
- func (d *Session) Indent() func() *Session
- func (d *Session) Info(msg ...interface{})
- func (d *Session) Raw(msg ...interface{})
- func (d *Session) Separator()
- func (d *Session) SessionEnd() (self *Session)
- func (d *Session) SessionStart(name string, verboseLevel int) (self *Session)
- func (d *Session) SetIndentSymbol(symbol string) (self *Session)
- func (d *Session) SetMaxDepth(depth int) (self *Session)
- func (d *Session) Success(msg ...interface{})
- func (d *Session) Warn(msg ...interface{})
Constants ¶
View Source
const ( Static = iota // Sessions set to this level will never print Error // Sessions set to this level will only print errors Warn // Sessions set to this level will print errors and warnings Develop // Developing sessions will print all logs )
Verbose Level for the logger to determine whether to print the log or not
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) DecrementIndent ¶
func (*Session) Error ¶
func (d *Session) Error(msg ...interface{})
Error logs messages with red color
func (*Session) IncrementIndent ¶
func (*Session) Info ¶
func (d *Session) Info(msg ...interface{})
Info logs messages with black color
func (*Session) SessionEnd ¶
func (*Session) SessionStart ¶
Session Logger is only verbose when package verbose is greater than the verbose level specified here.
If no name is provided, the name will be <filename>:<function name> of the caller
func (*Session) SetIndentSymbol ¶
func (*Session) SetMaxDepth ¶
Click to show internal directories.
Click to hide internal directories.