Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brodev3/logger

a simple logger by bro.dev
https://github.com/brodev3/logger

Last synced: 13 days ago
JSON representation

a simple logger by bro.dev

Awesome Lists containing this project

README

        

# logger




Version

## About

A simple logger by bro.dev. Supports message types: **info**, **debug**, **warn**, **success**, **fail**, **error**. The log entry is also duplicated in the txt logs file. Each entry contains the time, the type of message and the corresponding color, the text of the message. Messages with the debug type are output only to a file.

```javascript
const log = require("./logger")

log.success("hello")
log.info("hello")
log.warn("hello")
log.fail("hello")
log.debug("hello")
log.error("hello")
```



## License

Project **brodev3**/logger is distributed under the MIT license.