# log-color-optionaldate

> Log.js fork of fork - colored logs with or without timestamp.

Latest version **1.1.1** (published 2016-06-06) · 0 weekly downloads

## Install

```sh
npm install log-color-optionaldate
pnpm add log-color-optionaldate
yarn add log-color-optionaldate
bun add log-color-optionaldate
```

## 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.1.1 |
| Published | 2016-06-06 |
| First published | 2016-05-28 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.21 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Saul Johnson |
| Maintainers | lambdacasserole |
| Keywords | log, logger |

## Links

- npm: https://www.npmjs.com/package/log-color-optionaldate
- Repository: https://github.com/lambdacasserole/log-color-optionaldate.js
- Homepage: https://github.com/lambdacasserole/log-color-optionaldate.js#readme
- Issues: https://github.com/lambdacasserole/log-color-optionaldate.js/issues
- npm.io page: https://npm.io/package/log-color-optionaldate

## Dependencies (1)

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

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.1.1 (latest) — 2016-06-06
- 1.1.0 — 2016-05-28
- 1.0.0 — 2016-05-28

## README

# Log.js (with color and optional timestamps)

This package is a fork of [log-color.js](https://github.com/futoase/log-color.js) which it itself a fork of [Log.js](https://github.com/tj/log.js).

## Installation

Install using [npm](https://www.npmjs.com/):

```
$ npm install log-color-optionaldate
```

## Example

Can be used in a similar fashion to [Log.js](https://github.com/tj/log.js).

Code snippet:

```
var Log = require('log-color-optionaldate');
var log = new Log('info');
log.info('Sent a message to the user@example.com');
```

### Enabling Color

Enable color like this:

```
var Log = require('log-color-optionaldate');
var log = new Log({ level: 'debug', color: true, date: false });
log.warning('Failed to send a message to the user@example.com');
```

## Log Levels

The same log levels are available as in [Log.js](https://github.com/tj/log.js):

```
log.alert('alert');
log.critical('critical');
log.error('error');
log.warning('warning');
log.notice('notice');
log.info('info');
log.debug('debug'); 
```

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