Documentation ¶
Index ¶
- Constants
- type Logger
- func (i *Logger) Debug(v ...interface{})
- func (i *Logger) Debugf(format string, v ...interface{})
- func (i *Logger) Error(v ...interface{})
- func (i *Logger) Errorf(format string, v ...interface{})
- func (i *Logger) Fatal(v ...interface{})
- func (i *Logger) Fatalf(format string, v ...interface{})
- func (i *Logger) Info(v ...interface{})
- func (i *Logger) Infof(format string, v ...interface{})
- func (i *Logger) SetAppName(name string)
- func (i *Logger) SetDebug(debug bool)
- func (i *Logger) SetEnableCallerInfo(callerInfo bool)
- func (i *Logger) SetRecipientFromByte(b []byte)
- func (i *Logger) SetRecipientFromFiles(files ...string)
- func (i *Logger) SetRecipientFromReader(r io.Reader) error
- func (i *Logger) SetToken(token string) error
- func (i *Logger) Warn(v ...interface{})
- func (i *Logger) Warnf(format string, v ...interface{})
Constants ¶
View Source
const ( FATAL = "💥 [FATAL]" ERROR = "🥴 [ERROR]" WARN = "⚠️ [WARN]" INFO = "👀 [INFO]" DEBUG = "🤔 [DEBUG]" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger telelog logger instance
func (*Logger) Debug ¶
func (i *Logger) Debug(v ...interface{})
Debug print debug message to output if debug output enabled
func (*Logger) Fatal ¶
func (i *Logger) Fatal(v ...interface{})
Fatal print fatal message to output and quit the application with status 1
func (*Logger) Fatalf ¶
Fatalf print formatted fatal message to output and quit the application with status 1
func (*Logger) Info ¶
func (i *Logger) Info(v ...interface{})
Info print informational message to output
func (*Logger) SetAppName ¶
SetAppName set application name
func (*Logger) SetEnableCallerInfo ¶
SetEnableCallerInfo extract caller information and show the info on log
func (*Logger) SetRecipientFromByte ¶
SetRecipientFromByte receive byte of file content
func (*Logger) SetRecipientFromFiles ¶
SetRecipientFromFiles receive string of file path
func (*Logger) SetRecipientFromReader ¶
SetRecipientFromReader read content from reader
Click to show internal directories.
Click to hide internal directories.