https://github.com/axiomhq/logmanager
Yet another Go logging library.
https://github.com/axiomhq/logmanager
go golang logging logging-library logmanager
Last synced: about 1 year ago
JSON representation
Yet another Go logging library.
- Host: GitHub
- URL: https://github.com/axiomhq/logmanager
- Owner: axiomhq
- License: mit
- Created: 2021-03-16T09:27:13.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-21T11:05:12.000Z (almost 5 years ago)
- Last Synced: 2025-05-04T11:50:15.705Z (about 1 year ago)
- Topics: go, golang, logging, logging-library, logmanager
- Language: Go
- Homepage: https://axiom.co
- Size: 133 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: Contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# Logmanager
[![Go Reference][gopkg_badge]][gopkg]
[![Go Workflow][go_workflow_badge]][go_workflow]
[![Coverage Status][coverage_badge]][coverage]
[![Go Report][report_badge]][report]
[![Latest Release][release_badge]][release]
[![License][license_badge]][license]
---
## Table of Contents
1. [Introduction](#introduction)
1. [Installation](#Installation)
1. [Usage](#usage)
1. [Contributing](#contributing)
1. [License](#license)
## Introduction
_Logmanager_ is yet another Go logging library.
## Installation
### Install using `go get`
```shell
go get github.com/axiomhq/logmanager
```
### Install from source
```shell
git clone https://github.com/axiomhq/logmanager.git
cd logmanager
make
```
## Usage
```go
// Simple console logger
log2console := logmanager.GetLogger("foo.bar")
log2console.Info("hello world")
log2console.Warn("it's a trap")
// Prints:
// [09:15:54.24] info main@foo.bar main.go:10 hello world
// [09:15:54.24] warn main@foo.bar main.go:11 it's a trap
```
## Contributing
Feel free to submit PRs or to fill issues. Every kind of help is appreciated.
Before committing, `make` should run without any issues.
Kindly check our [Contributing](Contributing.md) guide on how to propose
bugfixes and improvements, and submitting pull requests to the project.
## License
© Axiom, Inc., 2021
Distributed under MIT License (`The MIT License`).
See [LICENSE](LICENSE) for more information.
[gopkg]: https://pkg.go.dev/github.com/axiomhq/logmanager
[gopkg_badge]: https://img.shields.io/badge/doc-reference-007d9c?logo=go&logoColor=white&style=flat-square
[go_workflow]: https://github.com/axiomhq/logmanager/actions?query=workflow%3Ago
[go_workflow_badge]: https://img.shields.io/github/workflow/status/axiomhq/logmanager/go?style=flat-square&ghcache=unused
[coverage]: https://codecov.io/gh/axiomhq/logmanager
[coverage_badge]: https://img.shields.io/codecov/c/github/axiomhq/logmanager.svg?style=flat-square&ghcache=unused
[report]: https://goreportcard.com/report/github.com/axiomhq/logmanager
[report_badge]: https://goreportcard.com/badge/github.com/axiomhq/logmanager?style=flat-square&ghcache=unused
[release]: https://github.com/axiomhq/logmanager/releases/latest
[release_badge]: https://img.shields.io/github/release/axiomhq/logmanager.svg?style=flat-square&ghcache=unused
[license]: https://opensource.org/licenses/MIT
[license_badge]: https://img.shields.io/github/license/axiomhq/logmanager.svg?color=blue&style=flat-square&ghcache=unused