Documentation ¶
Index ¶
- type ConsoleLogger
- func (c *ConsoleLogger) DEBUG(fotmat string, a ...interface{})
- func (c *ConsoleLogger) ERROR(fotmat string, a ...interface{})
- func (c *ConsoleLogger) FATAL(fotmat string, a ...interface{})
- func (c *ConsoleLogger) INFO(fotmat string, a ...interface{})
- func (c *ConsoleLogger) WARNING(fotmat string, a ...interface{})
- type FileLogger
- func (f *FileLogger) DEBUG(fotmat string, a ...interface{})
- func (f *FileLogger) ERROR(fotmat string, a ...interface{})
- func (f *FileLogger) FATAL(fotmat string, a ...interface{})
- func (f *FileLogger) INFO(fotmat string, a ...interface{})
- func (f *FileLogger) WARNING(fotmat string, a ...interface{})
- func (f *FileLogger) WriteToFile()
- type LogLevel
- type LogOutPut
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsoleLogger ¶
type ConsoleLogger struct {
Level LogLevel
}
var Default *ConsoleLogger
func (*ConsoleLogger) DEBUG ¶
func (c *ConsoleLogger) DEBUG(fotmat string, a ...interface{})
func (*ConsoleLogger) ERROR ¶
func (c *ConsoleLogger) ERROR(fotmat string, a ...interface{})
func (*ConsoleLogger) FATAL ¶
func (c *ConsoleLogger) FATAL(fotmat string, a ...interface{})
func (*ConsoleLogger) INFO ¶
func (c *ConsoleLogger) INFO(fotmat string, a ...interface{})
func (*ConsoleLogger) WARNING ¶
func (c *ConsoleLogger) WARNING(fotmat string, a ...interface{})
type FileLogger ¶
func (*FileLogger) DEBUG ¶
func (f *FileLogger) DEBUG(fotmat string, a ...interface{})
func (*FileLogger) FATAL ¶
func (f *FileLogger) FATAL(fotmat string, a ...interface{})
func (*FileLogger) INFO ¶
func (f *FileLogger) INFO(fotmat string, a ...interface{})
func (*FileLogger) WARNING ¶
func (f *FileLogger) WARNING(fotmat string, a ...interface{})
func (*FileLogger) WriteToFile ¶ added in v0.2.0
func (f *FileLogger) WriteToFile()
Click to show internal directories.
Click to hide internal directories.