Releases: Sellsuki/sellsuki-go-logger
Releases · Sellsuki/sellsuki-go-logger
slog.Any support error object
Changes
- slog. Any will now support the error object
- discard the data[app_name] attribute when no child
Move application payload inside the app_name object
change to application output from this
"data": {
"your_log": "your_value"
}
to
"data": {
"app_name": {
"your_log": "your_value"
}
}
Move application payload inside the app_name object
change to application output from this
"data": {
"your_log": "your_value"
}
to
"data": {
"app_name": {
"your_log": "your_value"
}
}
Added slog.Error to easy write error to log
Changes
- Added slog.Error(error) to easier write error info to the log
Example usage:
slog.L().Info("yikes", slog.Error(errors.new("hello world")))
Logger default instance preconfigured
This release pre-configured the default log instance (In case the configure method is not called before using)
- Use ISODateTime by default
- Config caller field to skip the wrapper
- Default INFO Level
Initial Release
This logger uses zap and log engine
The wrapping function includes
Request Log (HTTP, Kafka)
Application Log (DEBUG, INFO, WARN, ERROR, FATAL, PANIC)
Event Log (Entity, Action, Result)
The configure options
Log Level
Application Name
Version
That's it
Beta version
This logger uses zap and log engine
The wrapping function includes
- Request Log (HTTP, Kafka)
- Application Log (DEBUG, INFO, WARN, ERROR, FATAL, PANIC)
- Event Log (Entity, Action, Result)
The configure options
- Log Level
- Application Name
- Version
That's it