# @john-yuan/dev-simple-logger

> A simple logger that write log to the console with time and colors.

Latest version **1.0.1** (published 2019-02-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @john-yuan/dev-simple-logger
pnpm add @john-yuan/dev-simple-logger
yarn add @john-yuan/dev-simple-logger
bun add @john-yuan/dev-simple-logger
```

## 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.1 |
| Published | 2019-02-02 |
| First published | 2019-02-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | JOHN YUAN |
| Maintainers | john-yuan |
| Keywords | logger |

## Links

- npm: https://www.npmjs.com/package/@john-yuan/dev-simple-logger
- Repository: https://github.com/john-yuan/dev-simple-logger
- Homepage: https://github.com/john-yuan/dev-simple-logger#readme
- Issues: https://github.com/john-yuan/dev-simple-logger/issues
- npm.io page: https://npm.io/package/@john-yuan/dev-simple-logger

## Dependencies (2)

- [colors](https://npm.io/package/colors.md) ^1.3.3
- [timepoint](https://npm.io/package/timepoint.md) ^0.0.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.0.1 (latest) — 2019-02-02
- 1.0.0 — 2019-02-02

## README

# Simple Logger

A simple logger that write log to the console with time and colors.

## Install

This module is published to [NPM][NPM], you can install it with the following command:

[NPM]: https://www.npmjs.com/package/@john-yuan/dev-simple-logger

```bash
npm i @john-yuan/dev-simple-logger
```

## API

```js
/**
 * Like console.log(), no color and time will be applied
 *
 * @param {string} [message]
 * @returns {this}
 */
logger.log(message);

/**
 * Print the info message with the current time in green color
 *
 * @param {string} [message]
 * @returns {this}
 */
logger.info(message);

/**
 * Print the warning message with the current time in yellow color
 *
 * @param {string} [message]
 * @returns {this}
 */
logger.warn(message);

/**
 * Print the error message in red color. Empty lines will be prepended and appended.
 *
 * @param {string} [message]
 * @returns {this}
 */
logger.error(message);
```

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