7 console: function(record) {
11 method = (typeof console[record.level] === 'function') ? record.level : 'log';
12 console[method](record.message);
15 raven: function(record) {
23 logger: record.loggerName,
27 Object.keys(record.data || {})
28 .filter(function(key) {return key !== 'exception';})
29 .forEach(function(key) {
30 ravenData.tags[key] = record.data[key];
33 if(record.data && record.data.exception) {
34 window.Raven.captureException(record.data.exception, ravenData);
36 window.Raven.captureMessage(record.message, ravenData);