# @8select/strulo

> Log messages in a structured format.

Latest version **0.5.1** (published 2017-11-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @8select/strulo
pnpm add @8select/strulo
yarn add @8select/strulo
bun add @8select/strulo
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.1 |
| Published | 2017-11-23 |
| First published | 2017-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | 8select Software GmbH |
| Maintainers | voodoods, jbreckel, swirth, domis4, rschweizer, akleiber |
| Keywords | 8select, javascript, logging, lambda, aws, log, cloudwatch, json, level, log-level |

## Links

- npm: https://www.npmjs.com/package/@8select/strulo
- Repository: https://github.com/8select/strulo
- Homepage: https://github.com/8select/strulo#readme
- Issues: https://github.com/8select/strulo/issues
- npm.io page: https://npm.io/package/@8select/strulo

## Dependencies (1)

- [debug](https://npm.io/package/debug.md) ^2.6.8

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.5.1 (latest) — 2017-11-23
- 0.1.2 (dev) — 2017-09-27
- 0.5.0 — 2017-11-22
- 0.4.1 — 2017-11-22
- 0.4.0 — 2017-11-22
- 0.3.0 — 2017-11-08
- 0.2.0 — 2017-10-12

## README

# strulo
[![CircleCI](https://circleci.com/gh/8select/strulo/tree/master.svg?style=svg)](https://circleci.com/gh/8select/strulo/tree/master)

[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![](https://img.shields.io/npm/v/@8select/strulo.svg)](https://www.npmjs.com/package/@8select/strulo)
[![](https://img.shields.io/npm/dm/@8select/strulo.svg)](https://www.npmjs.com/package/@8select/strulo)
![module formats: cjs, esm](https://img.shields.io/badge/module%20formats-cjs%2C%20esm-green.svg)
![](/badges/coverage.svg?sanitize=true)

Log messages in a structured format

## Install
using NPM

`npm install --save @8select/strulo`

## How to use it
```js
const logger = require('@8select/strulo')
logger.debug('hello')
logger.info('hello from strulo')
logger.error('some error')
```

The DEBUG environment variable is used to enable these based on space or comma-delimited names. Here are some examples:

```sh
export DEBUG=DEBUG,ERROR,ALERT
```

displays only log messages with log level debug, error and alert

```sh
DEBUG {"message":"hello","level":"100","level_name":"DEBUG","time":1506502514498} +0ms

ERROR {"message":"some error","level":"400","level_name":"ERROR","time":1506502554430} +40s
```

# directory structure

```sh
+-- lib - "contains the lib files (ES5) + flow definitions"
|   +-- index.js - "which is compiled with Babel and stripped of types"
|   +-- index.js.flow - "which is the original file, with types left in it"
|   +-- info.js
|   +-- info.js.flow
|   +-- ...
+-- src - "contains the source files (ES.next)"
|   +-- index.js
|   +-- info.js
|   +-- ...
+-- test - "contains unit tests to related src structure
```

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