Skip to content

Commit c70f069

Browse files
committed
add usage in doc
1 parent 716b50a commit c70f069

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# js-bufflog
22
logger for all javascript and typescript Buffer services
33

4+
# Usage
5+
```js
6+
import bufflog from "BuffLog";
7+
8+
bufflog.debug('hello critical', {"some":"stuff"});
9+
bufflog.info('hello info');
10+
bufflog.notice('hello notice with context', {"foo":"bar"});
11+
bufflog.error('hello error');
12+
bufflog.critical('hello critical');
13+
```
414

515
## Log verbosity levels
616

0 commit comments

Comments
 (0)