Skip to content

RodrigoWebDev/logger-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Logger is a tiny javascript library to show console logs faster and easier

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors