Skip to content

Commit e5bdc20

Browse files
author
Conni
authored
Update README.md
1 parent 63372d1 commit e5bdc20

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,21 @@
1-
# Node-Logging
1+
# JS-Logging
2+
3+
```
4+
const logging = require("logging");
5+
6+
logging.log(<message>, <type>);
7+
8+
logging.log("Loggggginggg"); // Defaults to GENERIC type.
9+
logging.log("Loggggginggg", "TESTING);
10+
logging.log("Loggggginggg", "GENERIC);
11+
logging.log("Loggggginggg", "ERROR);
12+
logging.log("Loggggginggg", "DEBUG);
13+
```
14+
15+
```
16+
const logging = require("logging").log;
17+
18+
log("Thing");
19+
```
20+
21+
If you modify `index.js` directly if you change [this line](https://github.com/ConniBug/JS-Logging/blob/63372d144bfd020dcd7e36f7bcb35e089b49e303/logging.js#L9) you can modify what the minimun error type will be output in the console.

0 commit comments

Comments
 (0)