Documentation ¶
Index ¶
- Variables
- func Pipe(src io.ReadWriteCloser, dst io.ReadWriteCloser) (int64, int64)
- type Logger
- func (l *Logger) Debugf(f string, args ...interface{})
- func (l *Logger) Errorf(f string, args ...interface{}) error
- func (l *Logger) Fork(prefix string, args ...interface{}) *Logger
- func (l *Logger) Infof(f string, args ...interface{})
- func (l *Logger) IsDebug() bool
- func (l *Logger) IsInfo() bool
- func (l *Logger) Prefix() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Stdio = &struct { io.ReadCloser io.Writer }{ ioutil.NopCloser(os.Stdin), os.Stdout, }
Stdio as a ReadWriteCloser
Functions ¶
func Pipe ¶
func Pipe(src io.ReadWriteCloser, dst io.ReadWriteCloser) (int64, int64)
Types ¶
type Logger ¶
type Logger struct {
Info, Debug bool
// contains filtered or unexported fields
}
Logger is pkg/log Logger with prefixing and 2 log levels
func NewLoggerFlag ¶
Click to show internal directories.
Click to hide internal directories.