# @febbyjs/logger

> logging utility

Latest version **0.1.0** (published 2018-02-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @febbyjs/logger
pnpm add @febbyjs/logger
yarn add @febbyjs/logger
bun add @febbyjs/logger
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-02-20 |
| First published | 2018-02-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vasu Vanka |
| Maintainers | febbyjs |
| Keywords | logger, febby-logger, color, json, log |

## Links

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

## Dependencies (1)

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

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.1.0 (latest) — 2018-02-20

## README

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### Table of Contents

-   [log](#log)
-   [error](#error)
-   [success](#success)
-   [info](#info)
-   [warning](#warning)
-   [customLog](#customlog)

## log

To log user text as json object

**Parameters**

-   `message`  log text
-   `type`  type of log. ex: log,error,info,warning

**Examples**

```javascript
logger.log('hello world', 'log');
```

```javascript
//log output
{ type: 'log', message: 'hello world' }
```

## error

To log error text with red color

**Parameters**

-   `message`  log text

**Examples**

```javascript
logger.error('hello world');
```

## success

To log success text with green color

**Parameters**

-   `message`  log text

**Examples**

```javascript
logger.success('hello world');
```

## info

To log info text with blue color

**Parameters**

-   `message`  log text

**Examples**

```javascript
logger.info('hello world');
```

## warning

To log a warning with yellow color

**Parameters**

-   `message`  log text

**Examples**

```javascript
logger.warning('hello world');
```

## customLog

To log text with given rgb color code or color name

**Parameters**

-   `message`  log text
-   `color`  color [ black,
    red,
    green,
    yellow,
    blue,
    magenta,
    cyan,
    white,
    gray ("bright black"),
    redBright,
    greenBright,
    yellowBright,
    blueBright,
    magentaBright,
    yanBright,
    whiteBright ]

**Examples**

```javascript
logger.customLog('hello world','magentaBright');
```

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