# krlog

> This is made for @mcbe/console module * It receive log * It will keep log to memory * It will fire log to event * It can read keeped log * It can use various log levels * It can replace console.log ## Example

Latest version **2.0.4** (published 2020-12-23) · ISC license · 0 weekly downloads

## Install

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

## 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 | 2.0.4 |
| Published | 2020-12-23 |
| First published | 2019-09-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 8.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | ruakr |
| Maintainers | karikera |

## Links

- npm: https://www.npmjs.com/package/krlog
- Repository: https://github.com/karikera/mcbe_modules
- Homepage: https://github.com/karikera/mcbe_modules#readme
- Issues: https://github.com/karikera/mcbe_modules/issues
- npm.io page: https://npm.io/package/krlog

## Dependencies (2)

- [krevent](https://npm.io/package/krevent.md) ^1.0.0
- [@mcbe/dummy-console](https://npm.io/package/@mcbe/dummy-console.md) ^2.0.4

## Recent versions

- 2.0.4 (latest) — 2020-12-23
- 2.0.2 — 2020-12-23
- 2.0.1 — 2020-12-23
- 1.0.11 — 2019-10-06
- 1.0.10 — 2019-10-03
- 1.0.9 — 2019-10-03
- 1.0.8 — 2019-10-03
- 1.0.7 — 2019-10-03
- 1.0.6 — 2019-10-02
- 1.0.4 — 2019-10-01
- 1.0.3 — 2019-10-01
- 1.0.2 — 2019-10-01
- 1.0.1 — 2019-10-01
- 1.0.0 — 2019-09-30

## README

## About this
This is made for @mcbe/console module
* It receive log
* It will keep log to memory
* It will fire log to event
* It can read keeped log
* It can use various log levels
* It can replace console.log
## Example

```ts
import krlog from 'krlog';

krlog.listener.on((level:krlog.Level, message:string)=>{
    // process log
});

// basic functions
krlog.verbose('verbose');
krlog.message('message');
krlog.warning('warning');
krlog.error('error');

// install to console.log
krlog.install();
console.log('message');
console.error('error');


for(const line of krlog.page.current())
{
    // read page
}

krlog.page.next(); // next page
krlog.page.previous(); // previous page
krlog.page.clear(); // clear all pages



```

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