Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/brodev3/logger
- Owner: brodev3
- License: mit
- Created: 2024-05-04T20:36:37.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-09T07:06:50.000Z (8 months ago)
- Last Synced: 2024-12-10T14:09:07.097Z (13 days ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# logger
## 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.