# logoid

> Comprehensive typescript logging library

Latest version **0.0.4** (published 2020-05-04) · ISC license · 0 weekly downloads

## Install

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

## 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.0.4 |
| Published | 2020-05-04 |
| First published | 2020-05-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 19.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sripad |
| Maintainers | iamsripad |
| Keywords | Typescript, Log, Watcher |

## Links

- npm: https://www.npmjs.com/package/logoid
- Repository: https://github.com/sripad/logoid
- Homepage: https://github.com/sripad/logoid#readme
- Issues: https://github.com/sripad/logoid/issues
- npm.io page: https://npm.io/package/logoid

## Dependencies (1)

- [np](https://npm.io/package/np.md) ^6.2.3

## 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
- [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
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 0.0.4 (latest) — 2020-05-04
- 0.0.3 — 2020-05-04
- 0.0.2 — 2020-05-04
- 0.0.1 — 2020-05-04

## README

# logoid

Import

```
import {Logoid, LogoidOption, BroadcastRestApiOption,
     BroadcastIndexedDbOption, LogLevel, HttpRequest} from 'logoid/dist';
```

Install Logoid
```
log = Logoid();

constructor(private http: HttpClient) {
    this.log.installBroadcasts({
        broadCastRestApi: {
            httpRequest: {
                url: 'http://localhost:4200/api',
                method: 'POST'
            },
            watch: [LogLevel.ERROR],
            httpBroadCast: (httpRequest: HttpRequest) => {
                this.http.post(httpRequest.url, httpRequest.payload).subscribe(
                (response) => {}
                );
            }
        },
        broadcastIndexedDb: {
            watch: [LogLevel.INFO, LogLevel.ERROR]
        }
    });
}

```   
Console Log  
```
this.log.info('welcome to logoid');
try{
    this.log.error('error message', new Error('custom error'));
} catch(e){
    //
}
```

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