https://github.com/spatialcurrent/go-composite-logger
Composite logger for golang, built on logrus.
https://github.com/spatialcurrent/go-composite-logger
logger logging
Last synced: 6 days ago
JSON representation
Composite logger for golang, built on logrus.
- Host: GitHub
- URL: https://github.com/spatialcurrent/go-composite-logger
- Owner: spatialcurrent
- License: mit
- Created: 2018-02-06T02:15:41.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-15T14:23:09.000Z (over 7 years ago)
- Last Synced: 2024-06-20T06:30:51.056Z (over 1 year ago)
- Topics: logger, logging
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/spatialcurrent/go-composite-logger) [](https://godoc.org/github.com/spatialcurrent/go-composite-logger)
# go-composite-logger
# Description
**go-composite-logger** is a simple library for creating a composite logger.
# Installation
```
go get github.com/spatialcurrent/go-composite-logger
```
# Usage
**Import**
```
import (
"github.com/spatialcurrent/go-composite-logger/compositelogger"
)
```
**Config**
```
logs {
log {
location = "stdout"
level = "info"
format = "text"
}
log {
location = "~/myapplication/debug.jsonl"
level = "warn"
format = "json"
}
}
```
# Contributing
[Spatial Current, Inc.](https://spatialcurrent.io) is currently accepting pull requests for this repository. We'd love to have your contributions! Please see [Contributing.md](https://github.com/spatialcurrent/go-composite-logger/blob/master/CONTRIBUTING.md) for how to get started.
# License
This work is distributed under the **MIT License**. See **LICENSE** file.