https://github.com/rodrigowebdev/logger-library
Logger is a tiny javascript library to show console logs faster and easier
https://github.com/rodrigowebdev/logger-library
es6 javascript vanillajs
Last synced: 3 months ago
JSON representation
Logger is a tiny javascript library to show console logs faster and easier
- Host: GitHub
- URL: https://github.com/rodrigowebdev/logger-library
- Owner: RodrigoWebDev
- License: mit
- Created: 2020-04-18T02:37:53.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T03:40:50.000Z (about 3 years ago)
- Last Synced: 2024-12-28T01:45:27.923Z (about 1 year ago)
- Topics: es6, javascript, vanillajs
- Language: JavaScript
- Homepage:
- Size: 250 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Logger
Logger is a tiny javascript library to show console logs faster and easier
## How to use
- Include the dist/logger.js in your project
- In some JS file type:
```
log("Hello World")
```
## Command list
- assert(_expression_, _message_) : Write a message to the console, only if the first argument is _false_
- clear() : Clear all messages in the console
- count(_label_) : Write to the console the number of time the count() is called
- error(_message_) : write an error to the console
- group(_label_) : create a group of messages in the console
- groupCollapsed(_label_) : create a collapsed group of messages in the console
- groupEnd() : end a message group
- info(_message_) : write a message to the console
- log(_message_) : write to the console
- table(_tabledata, tablecolumns_) : write a table in the console
- time(_label_) : write to the console how long does it take to perform a task
- timeEnd(_label_) : end a time(_label_)
- trace(_label_) : show the trace of how the code ended up
- warn(_message_) : write a warning to the console