package
1.0.4
Repository: https://github.com/shkshariq/go-util.git
Documentation: pkg.go.dev

# README

Logger

Logger package of core library

Usage

simple loggin


logger.log().ErrorContext(ctx, `Something went wrong`, `param1`, `param2`)

this will log following output to the terminal

!!! ERROR !!!
Request Id => eb429299-4528-11e7-9d6a-42010af00018
Message => Something went wrong
Params { "param1", "param2"}

config

{
  "level": "INFO",
  "remote_log": true,
  "local_log": true,
  "file_logging": true,
  "log_to_file": false,
  "log_path": "logs"
}