# @brymonsoft/logger

> Logger Handler for CognitiveOps project

Latest version **1.0.4** (published 2019-06-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @brymonsoft/logger
pnpm add @brymonsoft/logger
yarn add @brymonsoft/logger
bun add @brymonsoft/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.4 |
| Published | 2019-06-18 |
| First published | 2019-04-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 2.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | brymonsoft |
| Maintainers | bora-89, laven, pashist |

## Links

- npm: https://www.npmjs.com/package/@brymonsoft/logger
- npm.io page: https://npm.io/package/@brymonsoft/logger

## Dependencies (3)

- [uuid](https://npm.io/package/uuid.md) ^3.3.2
- [graphql-tag](https://npm.io/package/graphql-tag.md) ^2.10.1
- [apollo-boost](https://npm.io/package/apollo-boost.md) 0.4.3

## Recent versions

- 1.0.4 (latest) — 2019-06-18
- 1.0.3 — 2019-04-10
- 1.0.2 — 2019-04-10
- 1.0.1 — 2019-04-10
- 1.0.0 — 2019-04-10

## README

##Logger Instance


## Installation

```sh
npm i @brymonsoft/logger
```


## Simple Use

Just create `Logger` instance

```js
const endpoint = 'any endpoint with http/https'
const Logger = require('Logger');

const loggerEntity = new Logger(endpoint);
```
For log any messages you can call `log` method with params:
```js
loggerEntity.log(TARGET_ID, TYPE, STACK, META)
```

Where:

| Param   |      Type      |  Required | Description |
|----------|:-------------:|------:|------:|
| TARGET_ID |  String | true | identifier of something that you add a log message about  |
| TYPE |    String   | true | type of the log message, e.g. `http`, `bot`, `qraphQl`, `my-custom-type1` |
| META | Any |    false | any custom data that should be with log message |
| STACK | String |    false | stack trace of the error |

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