Skip to content

Releases: Sellsuki/sellsuki-go-logger

slog.Any support error object

04 Oct 05:17
Compare
Choose a tag to compare

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

29 Sep 09:22
Compare
Choose a tag to compare

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

29 Sep 09:25
Compare
Choose a tag to compare

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

28 Sep 06:49
Compare
Choose a tag to compare

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

27 Sep 04:06
Compare
Choose a tag to compare

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

27 Sep 08:46
Compare
Choose a tag to compare

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

26 Sep 06:33
Compare
Choose a tag to compare

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