7 console: function(record) {
9 var level = record.level,
12 if(level === 'warning') {
15 method = (typeof console[level] === 'function') ? level : 'log';
16 if(record.data && record.data.exception && record.data.exception.stack) {
17 msg = record.data.exception.stack;
24 raven: function(record) {
32 logger: record.loggerName,
36 Object.keys(record.data || {})
37 .filter(function(key) {return key !== 'exception';})
38 .forEach(function(key) {
39 ravenData.tags[key] = record.data[key];
42 if(record.data && record.data.exception) {
43 window.Raven.captureException(record.data.exception, ravenData);
45 window.Raven.captureMessage(record.message, ravenData);