# loki-logger

> winston logger configuration for loki

Latest version **1.0.2** (published 2020-08-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install loki-logger
pnpm add loki-logger
yarn add loki-logger
bun add loki-logger
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-08-05 |
| First published | 2020-07-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | suhas siddarama |
| Maintainers | suhassiddu |

## Links

- npm: https://www.npmjs.com/package/loki-logger
- Repository: https://github.com/suhassiddu/loki-logger
- Homepage: https://github.com/suhassiddu/loki-logger#readme
- Issues: https://github.com/suhassiddu/loki-logger/issues
- npm.io page: https://npm.io/package/loki-logger

## Dependencies (1)

- [winston](https://npm.io/package/winston.md) 3.3.3

## Recent versions

- 1.0.2 (latest) — 2020-08-05
- 1.0.1 — 2020-07-21
- 1.0.0 — 2020-07-21

## README

# loki-logger

loki-logger is the wrapper for the winston, with the required configuration for the loki.

### sample code
```
const logger = require('loki-logger')
// for logging errors
try{
  throw Error('Handled Error')
} catch(err){
  logger.error(err)
}

// for debugging, use below pattern for concating objects to the message
logger.debug('debugging object: %o', {hi: 'hello'})
```

---
_Source: https://npm.io/package/loki-logger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
