7 console: function(record) {
9 var level = record.level,
12 if(level === 'warning') {
15 method = (typeof console[level] === 'function') ? level : 'log';
16 console[method](record.message);
19 raven: function(record) {
27 logger: record.loggerName,
31 Object.keys(record.data || {})
32 .filter(function(key) {return key !== 'exception';})
33 .forEach(function(key) {
34 ravenData.tags[key] = record.data[key];
37 if(record.data && record.data.exception) {
38 window.Raven.captureException(record.data.exception, ravenData);
40 window.Raven.captureMessage(record.message, ravenData);