# pure-logger

> A Simple logger for Node applications

Latest version **0.0.1** (published 2018-12-25) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install pure-logger
pnpm add pure-logger
yarn add pure-logger
bun add pure-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.1 |
| Published | 2018-12-25 |
| First published | 2018-12-25 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Angel Lacret |
| Maintainers | alacret |

## Links

- npm: https://www.npmjs.com/package/pure-logger
- Homepage: https://github.com/cobuildlab/pure-logger
- Issues: https://github.com/cobuildlab/pure-logger/issues
- npm.io page: https://npm.io/package/pure-logger

## Recent versions

- 0.0.1 (latest) — 2018-12-25

## README

# pure-logger

A minimalistic logger for node projects (backend, browser and mobile) that extends the console with the purpose of get rid of the overhead of logging on production enviroments (if you don't want to).

The logger check the value of: 

`__DEV__` 
`process.env`
and:
`window.DEBUG`

To check if any logs needs to be done.

Tested with Node applications, React and React Native, it should work with any other node applications without problem.

Missing:

- Formatting


## Examples:

### For node:


```
const log = require('simple-logger');
log.log ("a",1,2, {"a": 2});
log.error(new Error("Test"));
```

### For React:


```
import {log, error} from 'simple-logger';
log ("a",1,2, {"a": 2});
error(new Error("Test"));
```

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