Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MegalithOfficial committed Sep 30, 2023
1 parent 25b67f5 commit 1b46a9b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ setInterval(() => {
console.log('This is a counting message.', 'info'); // Output: [Info] This is a counting message. (number of duplicates)
}, 1000)
```
![](https://github.com/MegalithOffical/clog-utils/blob/main/images/counting.gif)

You can disable the Anti-Spam feature by adding the `disableAntiSpam` option to presets:

Expand Down Expand Up @@ -101,6 +102,9 @@ logger.error("This is an error");
// Or for error objects
logger.error(new Error("This is an error"));
```
![](https://github.com/MegalithOffical/clog-utils/blob/main/images/error.png)
![](https://github.com/MegalithOffical/clog-utils/blob/main/images/warning.png)
![](https://github.com/MegalithOffical/clog-utils/blob/main/images/errorwithcontructor.png)

### Restoring Original Logging 🔄

Expand Down Expand Up @@ -210,4 +214,4 @@ console.log("This message is sent with a custom message structure.", "error")

## License 📄

This library is licensed under the Apache 2.0 License. See the [LICENSE](LICENSE) file for details.
This library is licensed under the Apache 2.0 License. See the [LICENSE](LICENSE) file for details.

0 comments on commit 1b46a9b

Please sign in to comment.