码迷,mamicode.com
首页 > 编程语言 > 详细

[Javascript] Log Levels and Semantic Methods

时间:2016-05-14 06:42:41      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:

Go beyond console.log by learning about log levels, filtering log output and structuring your output to be meaningful and concise. The JavaScript console object offers many methods to make your life easier - start learning them here!

 

console.log("this is console.log message");
console.error("this is console.error message");
console.warn("this is console.warn message");
console.info("this is console.info message");
console.debug("this is console.debug message"); 

 

技术分享

 

Able to use Chrome dev tool‘s Filter to filter the console message

技术分享

[Javascript] Log Levels and Semantic Methods

标签:

原文地址:http://www.cnblogs.com/Answer1215/p/5491805.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!