Categorygithub.com/cymon1997/go-logger
modulepackage
1.0.0
Repository: https://github.com/cymon1997/go-logger.git
Documentation: pkg.go.dev

# README

go-client

Builder style logging made easy in Go.

For samples: sample.

Features

  • JSON and text based output format
  • Traceable context_id to group the log per usecase execution
  • Most level thresholds: debug, info, warn, error, fatal, panic
  • Custom payload: error, meta

Installation

go get -u github.com/cymon1997/go-logger

Sample

See examples directory for more featured use cases.

Contribute

Development

Checkout from latest main branch

git checkout main 
git pull origin main 
git checkout -b <your_branch>

Hint: please take a look at Branch Convention

If you add other dependencies, run:

make update-dep 

Before raise a Pull Request, please make sure you already suffice the tests of your code.

make test

Branch Convention

Format:

[prefix]_[feature_name]

Prefix:

  • f_ for new feature implementation
  • i_ for adding code improvement
  • b_ for fixing bug

Examples:

  • f_i
  • i_setup_http_transport
  • b_fix_intermittent_http

Issue / Feature Request

Please raise an issue and explains the issue / feature that you want to be supported. Give detail explanation about the issue / feature.

Contact

If you have anything to ask / discuss, please contact me below, thanks!
Aji Imawan Omi
GitHub: cymon1997

License

GNU GENERAL PUBLIC LICENSE - Aji Imawan Omi

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

DebugLevel level.
ErrorLevel level.
FatalLevel level.
InfoLevel level.
No description provided by the author
PanicLevel level, highest level of severity.
No description provided by the author
TraceLevel level.
WarnLevel level.

# Structs

No description provided by the author

# Interfaces

Entry
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author