Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Conni committed Apr 4, 2021
1 parent 63372d1 commit e5bdc20
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
# Node-Logging
# JS-Logging

```
const logging = require("logging");
logging.log(<message>, <type>);
logging.log("Loggggginggg"); // Defaults to GENERIC type.
logging.log("Loggggginggg", "TESTING);
logging.log("Loggggginggg", "GENERIC);
logging.log("Loggggginggg", "ERROR);
logging.log("Loggggginggg", "DEBUG);
```

```
const logging = require("logging").log;
log("Thing");
```

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 comments on commit e5bdc20

Please sign in to comment.