-
-**Dear diary, you make my logging so easy**
-
-
-
-
-
-
-
-
-
-
-
-
-
+[![npm downloads](https://badgen.net/npm/dw/diary?color=black&label=npm%20downloads)](https://npm-stat.com/charts.html?package=diary)
+[![licenses](https://licenses.dev/b/npm/diary?style=dark)](https://licenses.dev/npm/diary)
+[![size](https://badgen.net/bundlephobia/minzip/diary?color=black)](https://bundlephobia.com/package/diary)
-
@@ -39,143 +20,48 @@ This is free to use software, but if you do like it, consisder supporting me ❤
-## ⚡ Features
-
-- No [dependencies](https://npm.anvaka.com/#/view/2d/diary)
-- Outstanding [performance](#-benchmark)
-- Support for [`debug`'s filter](https://www.npmjs.com/package/debug#wildcards)
-
## ⚙️ Install
-```sh
+> Avaliable on [jsr](https://jsr.io/@mr/log), [NPM](https://npmjs.com/package/diary) and
+> [deno.land](https://deno.land/x/diary)
+
+```shell
npm add diary
```
## 🚀 Usage
```ts
-import { info, diary, enable } from 'diary';
+import { diary } from 'diary';
+import { pretty } from 'diary/output.console';
-// 1️⃣ Choose to enable the emission of logs, or not.
-enable('*');
+let user = { name: 'marais', type: 'admin' };
-// 2️⃣ log something
-info('this important thing happened');
-// ~> ℹ info this important thing happened
-
-// Maybe setup a scoped logger
-const scopedDiary = diary('my-module', (event) => {
- if (event.level === 'error') {
- Sentry.captureException(event.error);
- }
-});
-
-// 3️⃣ log more things
-scopedDiary.info('this other important thing happened');
-// ~> ℹ info [my-module] this other important thing happened
-```
-
-