https://github.com/brodev3/logger
a simple logger by bro.dev
https://github.com/brodev3/logger
Last synced: 3 months 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 (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-09T07:06:50.000Z (about 1 year ago)
- Last Synced: 2025-02-05T00:26:46.445Z (5 months 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.