Documentation
¶
Index ¶
- type Builder
- type CNotifier
- func (n *CNotifier) Debug(format string, argv ...interface{})
- func (n *CNotifier) Error(format string, argv ...interface{})
- func (n *CNotifier) Info(format string, argv ...interface{})
- func (n *CNotifier) Level() (level Level)
- func (n *CNotifier) Make() Notifier
- func (n *CNotifier) ModifyErr(stderr io.Writer) Notifier
- func (n *CNotifier) ModifyLevel(level Level) Notifier
- func (n *CNotifier) ModifyOut(stdout io.Writer) Notifier
- func (n *CNotifier) SetErr(w io.Writer) Builder
- func (n *CNotifier) SetLevel(level Level) Builder
- func (n *CNotifier) SetOut(w io.Writer) Builder
- func (n *CNotifier) Stderr() (w io.Writer)
- func (n *CNotifier) Stdout() (w io.Writer)
- type Level
- type Notifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { // SetLevel modifies the level setting SetLevel(level Level) Builder // SetOut overrides the default os.Stdout setting SetOut(w io.Writer) Builder // SetErr overrides the default os.Stderr setting SetErr(w io.Writer) Builder // Make produces the built Notifier instance Make() (n Notifier) }
Builder is the interface for constructing new Notifier instances
type CNotifier ¶
func (*CNotifier) ModifyLevel ¶
type Notifier ¶
type Notifier interface { // Level returns the verbosity of this Notifier Level() (level Level) // Stdout returns the io.Writer associated with normal output Stdout() (w io.Writer) // Stderr returns the io.Writer associated with error output Stderr() (w io.Writer) // ModifyLevel modifies the configured level setting ModifyLevel(level Level) Notifier // ModifyOut modifies the configured output writer ModifyOut(w io.Writer) Notifier // ModifyErr modifies the configured error writer ModifyErr(w io.Writer) Notifier // Debug passes the arguments to fmt.Fprintf using normal output and only // has effect when the Level is set to Debug Debug(format string, argv ...interface{}) // Info passes the arguments to fmt.Fprintf using normal output and only // has effect when the Level is set to Info or Debug Info(format string, argv ...interface{}) // Error passes the arguments to fmt.Fprintf using normal output and only // has effect when the Level is set to Info or Debug Error(format string, argv ...interface{}) }
Click to show internal directories.
Click to hide internal directories.