- Fix some lint, style, error

- Pkg Error : change the register part to allow identify if a code is free or still defined
- Pkg Error : apply change of register into all modules
- Make some optimization
This commit is contained in:
Nicolas JUHEL
2020-07-15 18:24:32 +02:00
parent d080f6c107
commit 379a99afdc
41 changed files with 782 additions and 132 deletions

View File

@@ -218,7 +218,7 @@ func (level Level) Logf(format string, args ...interface{}) {
// LogData Simple function to log directly the given message with given data with the attached log Level
/*
message a string message to be logged with the attached log Level
data an interface of data to be logged with the message. (In Text format, the data will be json marshalled)
data an interface of data to be logged with the message. (In Text format, the data will be json marshaled)
*/
func (level Level) LogData(message string, data interface{}) {
level.logDetails(message, data, nil, nil)