# ic-logs

> iclubs logs library

Latest version **2.1.0** (published 2023-03-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install ic-logs
pnpm add ic-logs
yarn add ic-logs
bun add ic-logs
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2023-03-16 |
| First published | 2021-12-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 18.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | vinicius.alberti.iclubs |
| Maintainers | arthur_machado, thiegomoura, fernandocardoso, alan.assis.iclubs, danielgroh, rafael.moura1, rodrigovb, vinicius.alberti.iclubs, fulvio.coelho |

## Links

- npm: https://www.npmjs.com/package/ic-logs
- npm.io page: https://npm.io/package/ic-logs

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.4.0

## Recent versions

- 2.1.0 (latest) — 2023-03-16
- 2.0.2 — 2023-03-16
- 2.0.1 — 2023-03-15
- 2.0.0 — 2023-03-15
- 1.0.6 — 2022-09-26
- 1.0.5 — 2022-09-26
- 1.0.4 — 2022-09-26
- 1.0.3 — 2022-01-07
- 1.0.2 — 2022-01-06
- 1.0.1 — 2021-12-17
- 1.0.0 — 2021-12-17

## README

# ic-logs

Logs library to iClubs developers.

## Functions:

- **verboseLog**: logs only when LOG*TYPE is equal to \_verbose*.

- **log**: logs only when LOG*TYPE is equal to \_standard* or _verbose_.

- **errorLog**: logs only when LOG*TYPE is equal to \_standard*, _verbose_, or _error_.

### When `LOG_TYPE` is equal to:

- `verbose`: the **_errorLog_**, **_verboseLog_**, and **_log_** functions will be considered.
- `standard`: the **_errorLog_** and **_log_** functions will be considered.
- `error`: only the **_errorLog_** function will be considered.
- `no`: no function is considered.

**_Note: LOG_TYPE is a mandatory environment variable._**

## Install

npm

```shell
npm i ic-logs
```

yarn

```shell
yarn add ic-logs
```

## Usage

```typescript
const logger = require('ic-logs');

logger.log(any);
logger.verboseLog(any);
logger.errorLog(any);
```

OR

```typescript
const { log, verboseLog, errorLog } = require('ic-logs');

log(any);
verboseLog(any);
errorLog(any);
```

## ES Module or Typescript Import

```typescript
import { log, verboseLog, errorLog } from 'ic-logs';
```

## Contact

For support use iClubs contact channels.

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