Documentation ¶
Index ¶
- type Output
- func (o *Output) Debug(m string, values ...interface{})
- func (o *Output) DebugFlag() bool
- func (o *Output) Error(m string, values ...interface{})
- func (o *Output) Fatal(m string, values ...interface{})
- func (o *Output) Info(m string, values ...interface{})
- func (o *Output) LogFileFlag() string
- func (o *Output) NoColorFlag() bool
- func (o *Output) Normal(m string, values ...interface{})
- func (o *Output) QuietFlag() bool
- func (o *Output) SetDebugFlag(b bool)
- func (o *Output) SetLogFileFlag(f string)
- func (o *Output) SetNoColorFlag(b bool)
- func (o *Output) SetQuietFlag(b bool)
- func (o *Output) SetVerboseFlag(b bool)
- func (o *Output) Success(m string, values ...interface{})
- func (o *Output) VerboseFlag() bool
- func (o *Output) Warning(m string, values ...interface{})
- func (o *Output) WriteOutput(message string, outputType string, values ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Output ¶
type Output struct {
// contains filtered or unexported fields
}
type Output interface { NoColorFlag() bool SetNoColorFlag(b bool) LogFile() string SetLogFile(f string) QuietFlag() bool SetQuietFlag(b bool) DebugFlag() bool SetDebugFlag(b bool) VerboseFlag() bool SetVerboseFlag(b bool) Output() }
var (
L *Output
)
func GetInstance ¶
func GetInstance() *Output
GetInstance returns a new instance of Output, each task has it's own instance.
func (*Output) LogFileFlag ¶ added in v0.0.16
func (*Output) NoColorFlag ¶
func (*Output) SetDebugFlag ¶
func (*Output) SetLogFileFlag ¶ added in v0.0.16
func (*Output) SetNoColorFlag ¶
func (*Output) SetQuietFlag ¶
func (*Output) SetVerboseFlag ¶
func (*Output) VerboseFlag ¶
func (*Output) WriteOutput ¶ added in v0.0.16
Output receives two strings (severity and message and outputs to stdout or
Click to show internal directories.
Click to hide internal directories.