# standard-levels

> Definition of standard log levels

Latest version **1.0.0** (published 2015-06-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install standard-levels
pnpm add standard-levels
yarn add standard-levels
bun add standard-levels
```

## 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 | 1.0.0 |
| Published | 2015-06-08 |
| First published | 2015-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | David Keijser |
| Maintainers | keis |

## Links

- npm: https://www.npmjs.com/package/standard-levels
- Repository: https://github.com/keis/standard-levels
- Issues: https://github.com/keis/standard-levels/issues
- npm.io page: https://npm.io/package/standard-levels

## Recent versions

- 1.0.0 (latest) — 2015-06-08

## README

# standard-levels

[![NPM Version][npm-image]](https://npmjs.org/package/standard-levels)

Definition of standard log levels.

## Levels

* CRITICAL - 50
* ERROR - 40
* WARNING - 30
* INFO - 20
* DEBUG - 10
* TRACE - 5

## setLevel

A simple function that can be attached to the prototype of any object you
want to be able to set a level on. If given a level name it will be
translated into it's numeric value before being set.

```javasript
function Logger() {}
Logger.prototype.setLevel = require('standard-levels').setLevel

var l = new Logger()
l.setLevel('INFO')
```

> Why don't you get on my level?

[npm-image]: https://img.shields.io/npm/v/standard-levels.svg?style=flat

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