Documentation ¶
Index ¶
- type LogBundle
- func (l *LogBundle) Error(message string, function interface{}, params map[string]interface{})
- func (l *LogBundle) Info(message string, function interface{}, params map[string]interface{})
- func (l *LogBundle) Panic(message string, function interface{}, params map[string]interface{})
- func (l *LogBundle) Warning(message string, function interface{}, params map[string]interface{})
- type Logger
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogBundle ¶
type LogBundle struct {
// contains filtered or unexported fields
}
Struct that will returns in `New` function
func (*LogBundle) Error ¶
Error message log
Put your message in `message` variable and write your current function in `function` and if you need to print some more parameters, put them inside `params` variable
func (*LogBundle) Info ¶
Info message log
Put your message in `message` variable and write your current function in `function` and if you need to print some more parameters, put them inside `params` variable
func (*LogBundle) Panic ¶
Panic message log
Put your message in `message` variable and write your current function in `function` and if you need to print some more parameters, put them inside `params` variable
type Logger ¶
type Logger interface { Info(message string, function interface{}, params map[string]interface{}) Warning(message string, function interface{}, params map[string]interface{}) Error(message string, function interface{}, params map[string]interface{}) Panic(message string, function interface{}, params map[string]interface{}) }
Click to show internal directories.
Click to hide internal directories.