function sa(){this.Init()}v("AdfLogWriter",sa);z.l(sa);sa.prototype.jg=function(a){this.ng();B.assert(a,"null logRecord");var b=this.ZA;(!b||b(a))&&this.Yc(a)};z.a("AdfLogWriter.prototype.publish",{jg:sa.prototype.jg});sa.prototype.flush=function(){this.ng()};z.a("AdfLogWriter.prototype.flush",{flush:sa.prototype.flush});sa.prototype.close=function(){this.flush();this.v9=l};z.a("AdfLogWriter.prototype.close",{close:sa.prototype.close});sa.prototype.km=function(a){B.nC(a);this.ZA=a};
z.a("AdfLogWriter.prototype.setFilter",{km:sa.prototype.km});sa.prototype.iy=r("ZA");z.a("AdfLogWriter.prototype.getFilter",{iy:sa.prototype.iy});sa.prototype.Init=function(){sa.f.Init.call(this);this.v9=p;this.ZA=n};z.a("AdfLogWriter.prototype.Init",{Init:sa.prototype.Init});sa.prototype.Yc=ca();z.a("AdfLogWriter.prototype.PublishImpl",{Yc:sa.prototype.Yc});sa.prototype.ng=function(){B.bc&&B.assert(!this.v9,this+" is already closed")};z.a("AdfLogWriter.prototype.CheckIfClosed",{ng:sa.prototype.ng});
sa.prototype.oq=ba();z.a("AdfLogWriter.prototype.FormatMessage",{oq:sa.prototype.oq});sa.prototype.ZS=function(a){var b=D.gsa[a];b==n&&(b=""+a);return b};z.a("AdfLogWriter.prototype.FormatLevel",{ZS:sa.prototype.ZS});sa.prototype.rz=function(a){return a?window.AdfUIUtils?na.oR(a,k,p,p):""+a:""};z.a("AdfLogWriter.prototype.FormatError",{rz:sa.prototype.rz});sa.prototype.Pv=function(a){if(a){a=a.toTimeString();var b=a.indexOf(" ");-1!=b&&(a=a.substring(0,b));return a}return n};
z.a("AdfLogWriter.prototype.FormatWhen",{Pv:sa.prototype.Pv});sa.prototype.co=function(a){var b="message\x3d'"+this.oq(a[Bc.$v]),d=this.ZS(a[Bc.ht]),b=b+("' level\x3d"+d);(d=this.rz(a[Bc.Mv]))&&(b+=" error\x3d"+d);return b+=" at "+this.Pv(a[Bc.mw])};z.a("AdfLogWriter.prototype.FormatLogRecord",{co:sa.prototype.co});