# simple-colourful-logger

> Simple colourful logger (http://gsi.dit.upm.es).

Latest version **0.1.3** (published 2013-06-04) · 0 weekly downloads

## Install

```sh
npm install simple-colourful-logger
pnpm add simple-colourful-logger
yarn add simple-colourful-logger
bun add simple-colourful-logger
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2013-06-04 |
| First published | 2013-03-31 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | J. Fernando Sánchez |
| Maintainers | balkian |

## Links

- npm: https://www.npmjs.com/package/simple-colourful-logger
- Repository: https://github.com/balkian/simple-colourful-logger
- npm.io page: https://npm.io/package/simple-colourful-logger

## Dependencies (1)

- [cli-color](https://npm.io/package/cli-color.md) *

## Recent versions

- 0.1.3 (latest) — 2013-06-04
- 0.1.2 — 2013-06-04
- 0.1.1 — 2013-06-04
- 0.1.0 — 2013-06-04
- 0.0.2 — 2013-03-31
- 0.0.1 — 2013-03-31

## README

![GSI Logo](http://gsi.dit.upm.es/templates/jgsi/images/logo.png)
[Simple Colourful Logger](http://gsi.dit.upm.es) 
==================================
A simple logger originally designed for the Maia platform. It accepts arbitrary arguments and formats the input if it's not a string. As a plus, it keeps the padding, so the extra information printed doesn't break the indentation of the default console.log.

You can specify the name of the logger and the levels that should be displayed. By default, only the "log" level is enabled. Use 'all' to add all the logging levels.

    var Logger = require('simple-colourful-logger').Logger;
    logger = new Logger('my-name', ['debug','warn']);
    logger.info('This is an error');
    logger.debug('This is a debug', {foo: "bar", bar: "foo"});
    logger.warn('This is a warning');

The result is the following:

    01:52:41 [DEBUG][my-name] { foo: "bar",
                                bar: "foo }
    01:52:42 [WARN] [my-name] This is a warning

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