MozillaReality / horizon

(2015) Horizon was an experimental VR browser built on web standards using CSS-VR.
http://mozvr.github.io/horizon/web/
Other
1 stars 0 forks source link

Console logging wrapper #70

Open cvan opened 9 years ago

cvan commented 9 years ago

it'd be nice if we had a simple wrapper around console logging so we can easily toggle logging. so like in development mode, we get all the logs, notices, etc. but in production mode, show only errors.

in the past, I've always rolled my own, but I'd encourage us to use battle-tested ones. https://github.com/pimterry/loglevel seems decent.

KevinGrandon commented 9 years ago

I would also like to see us experiment with the debug() module: https://github.com/visionmedia/debug

It's really nice to work with this on servers, and we should also be able to package it up and use it on the frontend.

cvan commented 9 years ago

totally, TJ's stuff is legit. with browserify, we can totally use it.

cvan commented 9 years ago

I've been using debug for webvr-holodeck. I really like it.