# log2console

> Helper method to log to console

Latest version **1.0.3** (published 2015-08-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install log2console
pnpm add log2console
yarn add log2console
bun add log2console
```

## 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.3 |
| Published | 2015-08-14 |
| First published | 2015-08-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Miguel Castillo |
| Maintainers | manchagnu |
| Keywords | console, logger |

## Links

- npm: https://www.npmjs.com/package/log2console
- Repository: https://github.com/MiguelCastillo/log2console
- Issues: https://github.com/MiguelCastillo/log2console/issues
- npm.io page: https://npm.io/package/log2console

## Dependencies (1)

- [dis-isa](https://npm.io/package/dis-isa.md) ^1.2.0

## 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
- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K 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

## Recent versions

- 1.0.3 (latest) — 2015-08-14
- 1.0.2 — 2015-08-14
- 1.0.1 — 2015-08-14
- 1.0.0 — 2015-08-14

## README

## log2console

Helper method to log to console. It looks at the type of the input to figure if it should be logged with `console.log` or `console.error`. It also takes into account the platform (node/browser) to determine the best format for the data to be logged.

log2console is a method, and it only takes one parameter.

``` javascript
log2console({hello: "world"});
log2console(new Error("Some random error"));
```

### Licensed under MIT

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