Gitter migration: Point people to app.gitter.im (rollout pt. 1)
[gitter.git] / public / js / utils / log.js
blob082292b5152ab9877b0d222089701bdfdd34aec7
1 'use strict';
3 var log = require('loglevel');
5 try {
6   window.gitterSetLogLevel = function(level) {
7     log.setLevel(level);
8   };
9 } catch (err) {
10   // noop, ignore `ReferenceError: window is not defined` when running in tests
13 module.exports = log;