Documentation ¶
Index ¶
- func Debug(message interface{}, args ...interface{})
- func Error(message interface{}, args ...interface{})
- func Fatal(err error)
- func Info(message interface{}, args ...interface{})
- func Init(logWriter io.Writer, logLevel, appName, env string) error
- func InitWithFile(logfile, logLevel, appName, env string) error
- func InitWithStdout(logLevel, appName, env string) error
- func Print(message interface{}, args ...interface{})
- func Println(message interface{}, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(message interface{}, args ...interface{})
Debug using debugging level for verbose the messages for stacktrace use error package github.com/pkg/errors in your imports. Use rtb/log in your imports. Initialize logger before first using.
func Error ¶
func Error(message interface{}, args ...interface{})
Error using Error level for logging error messages. Use rtb/log in your imports. Initialize logger before first using.
func Fatal ¶
func Fatal(err error)
Fatal using Error level for logging fatal error messages and exit from app. Use rtb/log in your imports. Initialize logger before first using.
func Info ¶
func Info(message interface{}, args ...interface{})
Info using Info level for logging messages Use rtb/log in your imports. Initialize logger before first using.
func InitWithFile ¶
InitWithFile initialize logger with file writer. Use rtb/log in your imports.
func InitWithStdout ¶
InitWithStdout initialize logger with stdout writer and make beauty output. Use rtb/log in your imports.
Types ¶
This section is empty.