Releases: Sellsuki/sellsuki-go-logger
Releases · Sellsuki/sellsuki-go-logger
v2.1.1
v2.1.0
v2.0.3
v2.0.2
Add Audit log
Merge pull request #6 from wayla99/feature/audit-log feat (✨): audit log
Add LogOption for alert attribute
- New 'LogOption' when writing log to enable the 'alert' attribute in the root log struct
- Fix the error that occurred when passing nil to slog.Error
- 'WithEvent' now accepts either string payload or struct for the 'data' attribute
- 'WithTracing' now accepts 3rd argument for 'request_id' (Optional, No break changes)
Resolve checksum problem
Resolve checksum problem
Remove caller from WithError
Changes
- Remove caller from with error, Now it only has the error name and stack trace
You can still send WithError("name", "caller", "stack trace") but caller will not be written to log anymore
- In Request Log (HTTP, Kafka) the error is now optional
- Using logger without configure will now using log level Fatal to prevent unwanted log print out
Remove caller from WithError
Changes
- Remove caller from with error, Now it only has the error name and stack trace
You can still send WithError("name", "caller", "stack trace") but caller will not be written to log anymore
- In Request Log (HTTP, Kafka) the error is now optional
- Using logger without configure will now using log level Fatal to prevent unwanted log print out
Add MaxBodySize config to limit size of body can write in the log
Changes
- Add MaxBodySize option to limit size of body that can write in the log
- Add Log constructor for default optimal configuration