# eazy-logger

> Simple cli logger

Latest version **4.1.0** (published 2025-04-02) · 0 weekly downloads

## Install

```sh
npm install eazy-logger
pnpm add eazy-logger
yarn add eazy-logger
bun add eazy-logger
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.1.0 |
| Published | 2025-04-02 |
| First published | 2014-09-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 1 |
| Unpacked size | 95 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Shane Osbourne |
| Maintainers | shakyshane |
| Keywords | plugins |

## Links

- npm: https://www.npmjs.com/package/eazy-logger
- Repository: https://github.com/shakyshane/easy-logger
- Issues: https://github.com/shakyshane/easy-logger/issues
- npm.io page: https://npm.io/package/eazy-logger

## Dependencies (1)

- [chalk](https://npm.io/package/chalk.md) 4.1.2

## Recent versions

- 4.1.0 (latest) — 2025-04-02
- 4.0.1 — 2023-03-04
- 4.0.0 — 2023-02-27
- 3.1.0 — 2020-10-17
- 3.0.2 — 2016-05-16
- 3.0.1 — 2016-05-16
- 3.0.0 — 2016-05-16
- 2.1.3 — 2016-03-22
- 2.1.2 — 2015-04-14
- 2.1.1 — 2015-02-01
- 2.1.0 — 2014-12-29
- 2.0.0 — 2014-11-23
- 1.5.0 — 2014-10-20
- 1.4.1 — 2014-10-13
- 1.4.0 — 2014-10-08
- … 7 more at https://npm.io/package/eazy-logger/versions

## README

##eazy-logger [![Build Status](https://travis-ci.org/shakyShane/easy-logger.svg?branch=master)](https://travis-ci.org/shakyShane/easy-logger) [![Coverage Status](https://img.shields.io/coveralls/shakyShane/easy-logger.svg)](https://coveralls.io/r/shakyShane/easy-logger?branch=master)

[tFunk](https://github.com/shakyShane/tfunk) + [String Substitution](http://nodejs.org/docs/latest/api/console.html#console_console_log_data)

![preview](http://cl.ly/image/3K2E2d111l15/Screen%20Shot%202014-09-17%20at%2020.49.17.png)

##Install

```
$ npm install eazy-logger --save
```

##Usage

```js
var logger  = require("eazy-logger").Logger({
    prefix: "{blue:[}{magenta:easy-logger}{blue:] }",
    useLevelPrefixes: true
});
```

```js
/**
 * Standard loggers + prefixes
 */
logger.debug("Debugging Msg");
logger.info("Info statement");
logger.warn("A little warning with string %s", "substitution");
logger.error("an error occurred in file: {red:%s}", "/users/awesomedev/file.js");
```

```js
/**
 * Use string substitution + colours
 */
logger.log("error", "Use {green:built-in} %s", "String substitution");
```

```js
/**
 * Set an option for the next log statement only
 */
logger.setOnce("useLevelPrefixes", true).warn("Use {green:built-in} %s", "String substitution");
```

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