Skip to content

Releases: Sellsuki/sellsuki-go-logger

v2.1.1

23 Nov 18:51
Compare
Choose a tag to compare
Fix error not show

v2.1.0

23 Nov 18:46
Compare
Choose a tag to compare
Fix error not show

v2.0.3

23 Nov 13:15
Compare
Choose a tag to compare
Add WithAppJsonData

v2.0.2

20 Nov 16:00
Compare
Choose a tag to compare
v2.0.2

Add Audit log

06 Jun 07:35
3bd3b0c
Compare
Choose a tag to compare
Merge pull request #6 from wayla99/feature/audit-log

 feat (✨): audit log

Add LogOption for alert attribute

04 May 05:11
8393be6
Compare
Choose a tag to compare
  • 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

04 Nov 09:41
Compare
Choose a tag to compare

Resolve checksum problem

Remove caller from WithError

05 Oct 06:30
Compare
Choose a tag to compare

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

05 Oct 06:47
Compare
Choose a tag to compare

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

05 Oct 05:12
Compare
Choose a tag to compare

Changes

  • Add MaxBodySize option to limit size of body that can write in the log
  • Add Log constructor for default optimal configuration