# mxd-logging

> Returns configured winston logger instances

Latest version **1.1.0** (published 2016-09-29) · 0 weekly downloads

## Install

```sh
npm install mxd-logging
pnpm add mxd-logging
yarn add mxd-logging
bun add mxd-logging
```

## 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.1.0 |
| Published | 2016-09-29 |
| First published | 2016-06-15 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | maxdome |

## Links

- npm: https://www.npmjs.com/package/mxd-logging
- Repository: https://github.com/maxdome/logging
- Homepage: http://github.com/maxdome/logging
- Issues: https://github.com/maxdome/logging/issues
- npm.io page: https://npm.io/package/mxd-logging

## Dependencies (1)

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

## Recent versions

- 1.1.0 (latest) — 2016-09-29
- 1.0.2 — 2016-09-06
- 1.0.1 — 2016-06-15
- 1.0.0 — 2016-06-15

## README

# Example

```
const logging = require('mxd-logging')(config);
const appLogger = logging('app');
```

# Config

## Environment Variables

If environment variables are set, the config object will be ignored!

* MXD_LOGGING_FILENAME: The path for the logfile
* MXD_LOGGING_LEVEL: The loglevel (optional, default: 'info')

## 'config' Object

For available types and their options, see: https://github.com/winstonjs/winston/blob/master/docs/transports.md
 
```
{
  "logging": {
    "transports": [
      { 
        type: '',
        options: {} 
      }
    ]
  }
}
```

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