Documentation
¶
Index ¶
- Constants
- type ConsoleConfig
- type ConsoleWriter
- func (this *ConsoleWriter) Debug(format string, args ...interface{})
- func (this *ConsoleWriter) Error(format string, err error, args ...interface{})
- func (this *ConsoleWriter) Info(format string, args ...interface{})
- func (this *ConsoleWriter) Init(name string, config []byte)
- func (this *ConsoleWriter) Verbose(format string, args ...interface{})
- func (this *ConsoleWriter) Warn(format string, args ...interface{})
- type FileConfig
- type FileWriter
- func (this *FileWriter) Debug(format string, args ...interface{})
- func (this *FileWriter) Error(format string, err error, args ...interface{})
- func (this *FileWriter) Info(format string, args ...interface{})
- func (this *FileWriter) Init(name string, config []byte)
- func (this *FileWriter) Printf()
- func (this *FileWriter) Verbose(format string, args ...interface{})
- func (this *FileWriter) Warn(format string, args ...interface{})
- type LogAdapter
- type LogConfig
- type LogWriter
- type Logger
- func (l *Logger) D(format string, args ...interface{})
- func (l *Logger) E(format string, err error, args ...interface{})
- func (l *Logger) I(format string, args ...interface{})
- func (l *Logger) Register(adapter *LogAdapter) *Logger
- func (l *Logger) V(format string, args ...interface{})
- func (l *Logger) W(format string, args ...interface{})
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsoleConfig ¶
type ConsoleConfig struct {
DateFormat string
}
type ConsoleWriter ¶
type ConsoleWriter struct {
// contains filtered or unexported fields
}
func (*ConsoleWriter) Debug ¶
func (this *ConsoleWriter) Debug(format string, args ...interface{})
func (*ConsoleWriter) Error ¶
func (this *ConsoleWriter) Error(format string, err error, args ...interface{})
func (*ConsoleWriter) Info ¶
func (this *ConsoleWriter) Info(format string, args ...interface{})
func (*ConsoleWriter) Init ¶
func (this *ConsoleWriter) Init(name string, config []byte)
func (*ConsoleWriter) Verbose ¶
func (this *ConsoleWriter) Verbose(format string, args ...interface{})
func (*ConsoleWriter) Warn ¶
func (this *ConsoleWriter) Warn(format string, args ...interface{})
type FileConfig ¶
type FileWriter ¶
type FileWriter struct {
// contains filtered or unexported fields
}
func (*FileWriter) Debug ¶
func (this *FileWriter) Debug(format string, args ...interface{})
func (*FileWriter) Error ¶
func (this *FileWriter) Error(format string, err error, args ...interface{})
func (*FileWriter) Info ¶
func (this *FileWriter) Info(format string, args ...interface{})
func (*FileWriter) Init ¶
func (this *FileWriter) Init(name string, config []byte)
func (*FileWriter) Printf ¶
func (this *FileWriter) Printf()
func (*FileWriter) Verbose ¶
func (this *FileWriter) Verbose(format string, args ...interface{})
func (*FileWriter) Warn ¶
func (this *FileWriter) Warn(format string, args ...interface{})
type LogAdapter ¶
func ConsoleLogger ¶
func ConsoleLogger() *LogAdapter
func FileLogger ¶
func FileLogger() *LogAdapter
Directories
¶
Path | Synopsis |
---|---|
Godeps
|
|
_workspace/src/github.com/issue9/term/colors
colors 带色彩的控制台文本输出包,兼容windows平台。
|
colors 带色彩的控制台文本输出包,兼容windows平台。 |
Click to show internal directories.
Click to hide internal directories.