https://github.com/codebrahma/logem
Opinionated logger for terminal with papertrail integration
https://github.com/codebrahma/logem
log logger papertrail winston
Last synced: 5 months ago
JSON representation
Opinionated logger for terminal with papertrail integration
- Host: GitHub
- URL: https://github.com/codebrahma/logem
- Owner: Codebrahma
- License: mit
- Created: 2017-07-25T20:44:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-26T13:27:01.000Z (over 8 years ago)
- Last Synced: 2024-11-16T14:19:11.848Z (about 1 year ago)
- Topics: log, logger, papertrail, winston
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/logem
- Size: 117 KB
- Stars: 5
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![logem][logem-logo]][logem-url]
Opinionated logger based on top of [winston](https://www.npmjs.com/package/winston)
with [Papertrail](https://papertrailapp.com/) integration.
## Demo
![Terminal gif][example-gif]
## How to use
```js
var logem = require('logem');
logem.debug({ objects: [ 'allowed' ] });
logem.info('An informational message');
logem.warn('⚠️ Warning !!');
logem.error('ERROR: blah');
```
## Environment variables
The package uses environment variables instead of configurations in order to be
provide the ability to change logging behavior without changing the code.
| ENV | Default | Desc |
|:-----------------|:--------|:---------------------------|
| LOG_LEVEL | info | severity of logging needed |
| LOG_SERVICE_HOST | | Host of Papertrail service |
| LOG_SERVICE_PORT | | Port of Papertrail service |
## How to install
```
npm install logem
```
---
Built by: [Codebrahma][codebrahma-url]
[logem-url]: https://github.com/Codebrahma/logem
[logem-logo]: https://raw.githubusercontent.com/Codebrahma/logem/master/logo.png
[example-gif]: https://raw.githubusercontent.com/Codebrahma/logem/master/example.gif
[codebrahma-url]: https://github.com/Codebrahma