https://github.com/triole/logseal
a wrapper for logrus
https://github.com/triole/logseal
Last synced: 8 months ago
JSON representation
a wrapper for logrus
- Host: GitHub
- URL: https://github.com/triole/logseal
- Owner: triole
- Created: 2023-03-16T07:10:12.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-01-05T05:31:30.000Z (over 2 years ago)
- Last Synced: 2025-09-05T19:30:10.368Z (9 months ago)
- Language: Go
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Logseal
Logseal is a wrapper around [logrus](https://github.com/sirupsen/logrus) that provides a few functions that make life a little easier.
## Usage
Four init parameters are supported.
| parameter | type | default |
|-----------------------|--------|-------------|
| log level | string | info |
| log file | string | /dev/stdout |
| no colours, bool | bool | false |
| enable JSON log, bool | bool | false |
## Example
```go
import (
"github.com/triole/logseal"
)
lg = logseal.Init("debug", nil, true, false)
```