var r=require("events"),n=require("util"),e=exports.Transport=function(e){r.EventEmitter.call(this),e=e||{},this.level=void 0===e.level?"info":e.level,this.silent=e.silent||!1,this.raw=e.raw||!1,this.name=e.name||this.name,this.handleExceptions=e.handleExceptions||!1};n.inherits(e,r.EventEmitter),e.prototype.formatQuery=function(e){return e},e.prototype.normalizeQuery=function(e){return e=e||{},e.rows=e.rows||e.limit||10,e.start=e.start||0,e.from=e.from||new Date-864e5,"object"!=typeof e.from&&(e.from=new Date(e.from)),e.until=e.until||new Date,"object"!=typeof e.until&&(e.until=new Date(e.until)),e.order=e.order||"desc",e.fields=e.fields,e},e.prototype.formatResults=function(e){return e},e.prototype.logException=function(o,i,e){function r(){t.removeListener("error",n),e()}function n(){t.removeListener("logged",r),e()}var t=this;this.once("logged",r),this.once("error",n),this.log("error",o,i,function(){})};