# epha-log

> Log with service, version and levels

Latest version **0.3.28** (published 2015-06-23) · 0 weekly downloads

## Install

```sh
npm install epha-log
pnpm add epha-log
yarn add epha-log
bun add epha-log
```

## 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.3.28 |
| Published | 2015-06-23 |
| First published | 2015-03-11 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Marco Egbring |
| Maintainers | epha |
| Keywords | logging |

## Links

- npm: https://www.npmjs.com/package/epha-log
- Repository: https://github.com/epha/log
- Homepage: https://github.com/epha/log#readme
- Issues: https://github.com/epha/log/issues
- npm.io page: https://npm.io/package/epha-log

## Dependencies (1)

- [superagent](https://npm.io/package/superagent.md) ^1.2.0

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 0.3.28 (latest) — 2015-06-23
- 0.3.27 — 2015-04-10
- 0.3.26 — 2015-04-10
- 0.3.25 — 2015-04-10
- 0.3.24 — 2015-04-10
- 0.3.23 — 2015-04-09
- 0.3.22 — 2015-04-09
- 0.3.21 — 2015-04-09
- 0.3.20 — 2015-04-08
- 0.3.19 — 2015-04-08
- 0.3.18 — 2015-04-08
- 0.3.17 — 2015-04-07
- 0.3.16 — 2015-04-07
- 0.3.15 — 2015-04-07
- 0.3.14 — 2015-04-07
- … 25 more at https://npm.io/package/epha-log/versions

## README

# Log

## Get started
```javascript
var log = require("epha-log");

/*
 * Configuration of logger  
 * @params {
 *  service: (string) optional
 *  version: (string) optional
 *  type: (string) optional, default module
 *  transports: (array) optional [{ 
 *    level: ["ERROR","WARN","INFO","DEBUG","TRACE","TIME","DOING"], //default
 *    url: "track.com"
 *  }]
 * }
 */
log = log({ 
  service: "moduleX",
  version: "0.1.0"
});

log.info("group", "message", "detail", "payload");
```
### Console
```bash
$ moduleX@0.1.0 | INFO | group | message { arg3:"detail" } { arg4:"payload" }
```

## Test example
```bash
npm test
```

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