Documentation
¶
Index ¶
- func Debug(format string, args ...interface{})
- func Error(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func Init(logLevel string, logTo string)
- func Warn(format string, args ...interface{})
- type PrefixLogger
- func (pf *PrefixLogger) AddPrefix(pfx string)
- func (pf *PrefixLogger) Debug(format string, args ...interface{})
- func (pf *PrefixLogger) Error(format string, args ...interface{})
- func (pf *PrefixLogger) Info(format string, args ...interface{})
- func (pf *PrefixLogger) ReplacePrefix(old string, new string)
- func (pf *PrefixLogger) Warn(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrefixLogger ¶
type PrefixLogger struct {
// contains filtered or unexported fields
}
PrefixLogger is a logger with prefix
func NewPrefixLogger ¶
func NewPrefixLogger(pfx ...string) PrefixLogger
NewPrefixLogger set prefixs for logger
func (*PrefixLogger) AddPrefix ¶
func (pf *PrefixLogger) AddPrefix(pfx string)
AddPrefix add prefix to log.
func (*PrefixLogger) Debug ¶
func (pf *PrefixLogger) Debug(format string, args ...interface{})
Debug log
func (*PrefixLogger) Error ¶
func (pf *PrefixLogger) Error(format string, args ...interface{})
Error log
func (*PrefixLogger) Info ¶
func (pf *PrefixLogger) Info(format string, args ...interface{})
Info log
func (*PrefixLogger) ReplacePrefix ¶
func (pf *PrefixLogger) ReplacePrefix(old string, new string)
func (*PrefixLogger) Warn ¶
func (pf *PrefixLogger) Warn(format string, args ...interface{})
Warn log
Click to show internal directories.
Click to hide internal directories.