devfacet / zlog

A Golang library that provides abstraction layer for zerolog logging library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zlog

Godoc Release Build

A Golang library that provides abstraction layer for zerolog logging library.

Usage

logger := zlog.Logger("info", "console", "stdout", "UTC")
logger.Info().Strs("foo", "bar").Msg("baz")

// or

zlog.DefaultLogger().Info().Strs("foo", "bar").Msg("baz")

Test

# Test everything:
make test

# For BDD development:
# It will open a new browser window. Make sure:
#   1. There is no errors on the terminal window.
#   2. There is no other open GoConvey page.
make test-ui

# Benchmarks
make test-benchmarks

Release

# Update and commit CHANGELOG.md first (i.e. git add CHANGELOG.md && git commit -m "v1.0.0").
# Set GIT_TAG using semver (i.e. GIT_TAG=v1.0.0)
make release GIT_TAG=

Contributing

See CONTRIBUTING.md

License

Licensed under The MIT License (MIT)
For the full copyright and license information, please view the LICENSE.txt file.

About

A Golang library that provides abstraction layer for zerolog logging library.

License:MIT License


Languages

Language:Makefile 65.1%Language:Go 34.9%