- method = (typeof console[record.level] === 'function') ? record.level : 'log';
- console[method](record.message);
+ if(level === 'warning') {
+ level = 'warn';
+ }
+ method = (typeof console[level] === 'function') ? level : 'log';
+ if(record.data && record.data.exception && record.data.exception.stack) {
+ msg = record.data.exception.stack;
+ } else {
+ msg = record.message;
+ }
+ console[method](msg);