# modreal-logger

> This is an opinionated simple logger package. It assumes:

Latest version **0.0.2** (published 2013-11-06) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2013-11-06 |
| First published | 2013-11-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | aj0strow |

## Links

- npm: https://www.npmjs.com/package/modreal-logger
- Repository: https://github.com/modreal/logger
- Issues: https://github.com/modreal/logger/issues
- npm.io page: https://npm.io/package/modreal-logger

## Dependencies (3)

- [winston](https://npm.io/package/winston.md) ~0.7.2
- [modreal-config](https://npm.io/package/modreal-config.md) ~0.0.3
- [winston-loggly](https://npm.io/package/winston-loggly.md) ~0.6.0

## Recent versions

- 0.0.2 (latest) — 2013-11-06

## README

# modreal-logger

This is an opinionated simple logger package. It assumes:

- you want to log to the console
- you use loggly and have a config/loggly.json file

### Loggly Config

Put the following in `config/loggly.json`:

```json
{
  "subdomain": "your-subdomain",
  "inputToken": "your-input-token-here",
  "json": true
}
```

### Usage

Require the logger, and log to it!

```js
var logger = require("modreal-logger");
logger.info("{winston} logger is working!");
```

For easy searches with loggly, you can include metadata as well:

```js
logger.info("{winston} logger ready", { module: "winston" });
```

And then you could search it on loggly with:

```
json.module:winston
```

### License

MIT

---

AJ Ostrow, November 2013

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