# lawg

> Dead simple logger

Latest version **2.0.1** (published 2017-12-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install lawg
pnpm add lawg
yarn add lawg
bun add lawg
```

## 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 | 2.0.1 |
| Published | 2017-12-12 |
| First published | 2014-11-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | mhzed |
| Maintainers | mhzed |
| Keywords | simple, logger, code, location, timestamp |

## Links

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

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2017-12-12
- 2.0.0 — 2017-12-09
- 1.0.5 — 2016-08-11
- 1.0.3 — 2015-01-09
- 1.0.2 — 2015-01-09
- 1.0.1 — 2015-01-09
- 0.1.0 — 2014-11-17
- 1.0.0 — 2014-11-13

## README

lawg
--------

An onomatopoeia on "log".

Sample code
  
    var log = require("lawg")
    
    log( 1, " word ", new Error("err"), [1,2], { x : 1, y: {a : 2}})
    
Outputs
 
    [Jan 09 2015 13:39:42.786 GMT+0800] 1 word [Error: err][ 1, 2 ]{ x: 1, y: { a: 2 } }
     

If the "NODE_DEBUG" environment variable is set, the source code location is printed 
immediately after timestamp.  Output looks like:

    [Jan 09 2015 13:39:42.786 GMT+0800](lawg/index.js:60:10) 1 word [Error: err][ 1, 2 ]{ x: 1, y: { a: 2 } }

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