1"use strict";(self.webpackChunkportal=self.webpackChunkportal||[]).push([[821],{7821:(k,g,i)=>{i.r(g),i.d(g,{LogsModule:()=>R});var F=i(9534),d=i(22);class p{constructor(a,n){this.name=a,this.level=n}}var t=i(4438),h=i(1626),m=i(9601);let f=(()=>{class s{constructor(n,e){this.http=n,this.applicationConfigService=e}changeLevel(n,e){return this.http.post(this.applicationConfigService.getEndpointFor(`management/loggers/${n}`),{configuredLevel:e})}findAll(){return this.http.get(this.applicationConfigService.getEndpointFor("management/loggers"))}static{this.\u0275fac=function(e){return new(e||s)(t.KVO(h.Qq),t.KVO(m.a))}}static{this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var c=i(9417),l=i(177),u=i(60),_=i(8300),E=i(9758),v=i(5780);const j=s=>({total:s});function C(s,a){if(1&s){const n=t.RV6();t.j41(0,"tr"),t.EFF(1,"\n "),t.j41(2,"td"),t.EFF(3,"\n "),t.j41(4,"small"),t.EFF(5),t.nI1(6,"slice"),t.k0s(),t.EFF(7,"\n "),t.k0s(),t.EFF(8,"\n "),t.j41(9,"td"),t.EFF(10,"\n "),t.j41(11,"button",14),t.bIt("click",function(){const o=t.eBV(n).$implicit,r=t.XpG
1(2);return t.Njj(r.changeLevel(o.name,"TRACE"))}),t.EFF(12,"\n TRACE\n "),t.k0s(),t.EFF(13,"\n\n "),t.j41(14,"button",14),t.bIt("click",function(){const o=t.eBV(n).$implicit,r=t.XpG(2);return t.Njj(r.changeLevel(o.name,"DEBUG"))}),t.EFF(15,"\n DEBUG\n "),t.k0s(),t.EFF(16,"\n\n "),t.j41(17,"button",14),t.bIt("click",function(){const o=t.eBV(n).$implicit,r=t.XpG(2);return t.Njj(r.changeLevel(o.name,"INFO"))}),t.EFF(18,"\n INFO\n "),t.k0s(),t.EFF(19,"\n\n "),t.j41(20,"button",14),t.bIt("click",function(){const o=t.eBV(n).$implicit,r=t.XpG(2);return t.Njj(r.changeLevel(o.name,"WARN"))}),t.EFF(21,"\n WARN\n "),t.k0s(),t.EFF(22,"\n\n "),t.j41(23,"button",14),t.bIt("click",function(){const o=t.eBV(n).$implicit,r=t.XpG(2);return t.Njj(r.changeLevel(o.name,"ERROR"))}),t.EFF(24,"\n ERROR\n "),t.k0s(),t.EFF(25,"\n\n "),t.j41(26,"button",14),t.bIt("click",function(){const o=t.eBV(n).$implicit,r=t.XpG(2);return t.Njj(r.changeLevel(o.name,"OFF"))}),t.EFF(27,"\n OFF\n "),t.k0s(),t.EFF(28,"\n "),t.k0s(),t.EFF(29,"\n "),t.k0s()}if(2&s){const n=a.$implicit;t.R7$(5),t.JRh(t.brH(6,7,n.name,0,140)),t.R7$(6),t.Y8G("ngClass","TRACE"===n.level?"btn-primary":"btn-light"),t.R7$(3),t.Y8G("ngClass","DEBUG"===n.level?"btn-success":"btn-light"),t.R7$(3),t.Y8G("ngClass","INFO"===n.level?"btn-info":"btn-light"),t.R7$(3),t.Y8G("ngClass","WARN"===n.level?"btn-warning":"btn-light"),t.R7$(3),t.Y8G("ngClass","ERROR"===n.level?"btn-danger":"btn-light"),t.R7$(3),t.Y8G("ngClass","OFF"===n.level?"btn-secondary":"btn-light")}}function b(s,a){if(1&s){const n=t.RV6();t.j41(0,"div",1),t.EFF(1,"\n "),t.j41(2,"h2",2),t.EFF(3,"Logs"),t.k0s(),t.EFF(4,"\n\n "),t.j41(5,"p",3),t.EFF(6),t.k0s(),t.EFF(7,"\n\n "),t.j41(8,"span",4),t.EFF(9,"Filter"),t.k0s(),t.EFF(10,"\n "),t.j41(11,"input",5),t.mxI("ngModelChange",function(o){t.eBV(n);const r=t.XpG();return t.DH7(r.filter,o)||(r.filter=o),t.Njj(o)}),t.bIt("ngModelChange",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.filterAndSort())}),t.k0s(),t.EFF(12,"\n\n "),t.j41(13,"table",6),t.EFF(14,"\n "),t.j41(15,"thead"),t.EFF(16,"\n "),t.j41(17,"tr",7),t.mxI("predicateChange",function(o){t.eBV(n);const r=t.XpG();return t.DH7(r.orderProp,o)||(r.orderProp=o),t.Njj(o)})("ascendingChange",function(o){t.eBV(n);const r=t.XpG();return t.DH7(r.ascending,o)||(r.ascending=o),t.Njj(o)}),t.bIt("sortChange",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.filterAndSort())}),t.EFF(18,"\n "),t.j41(19,"th",8),t.EFF(20,"\n "),t.j41(21,"span",9),t.EFF(22,"Name"),t.k0s(),t.EFF(23,"\n "),t.nrm(24,"fa-icon",10),t.EFF(25,"\n "),t.k0s(),t.EFF(26,"\n "),t.j41(27,"th",11),t.EFF(28,"\n "),t.j41(29,"span",12),t.EFF(30,"Level"),t.k0s(),t.EFF(31,"\n "),t.nrm(32,"fa-icon",10),t.EFF(33,"\n "),t.k0s(),t.EFF(34,"\n "),t.k0s(),t.EFF(35,"\n "),t.k0s(),t.EFF(36,"\n\n "),t.DNE(37,C,30,11,"tr",13),t.EFF(38,"\n "),t.k0s(),t.EFF(39,"\n"),t.k0s()}if(2&s){const n=t.XpG();t.R7$(5),t.Y8G("translateValues",t.eq3(6,j,n.loggers.length)),t.R7$(),t.SpI("\n There are ",n.loggers.length," loggers.\n "),t.R7$(5),t.R50("ngModel",n.filter),t.R7$(6),t.R50("predicate",n.orderProp)("ascending",n.ascending),t.R7$(20),t.Y8G("ngForOf",n.filteredAndOrderedLoggers)}}const L={path:"",component:(()=>{class s{constructor(n){this.logsService=n,this.filter="",this.orderProp="name",this.ascending=!0}ngOnInit(){this.findAndExtractLoggers()}changeLevel(n,e){this.logsService.changeLevel(n,e).subscribe(()=>this.findAndExtractLoggers())}filterAndSort(){this.filteredAndOrderedLoggers=this.loggers.filter(n=>!this.filter||n.name.toLowerCase().includes(this.filter.toLowerCase())).sort((n,e)=>n[this.orderProp]<e[this.orderProp]?this.ascending?-1:1:n[this.orderProp]>e[this.orderProp]?this.ascending?1:-1:"level"===this.orderProp?n.name<e.name?-1:1:0)}
1findAndExtractLoggers(){this.logsService.findAll().subscribe(n=>{this.loggers=Object.entries(n.loggers).map(([e,o])=>new p(e,o.effectiveLevel)),this.filterAndSort()})}static{this.\u0275fac=function(e){return new(e||s)(t.rXU(f))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["jhi-logs"]],decls:2,vars:1,consts:[["class","table-responsive",4,"ngIf"],[1,"table-responsive"],["id","logs-page-heading","jhiTranslate","logs.title","data-cy","logsPageHeading"],["jhiTranslate","logs.nbloggers",3,"translateValues"],["jhiTranslate","logs.filter"],["type","text",1,"form-control",3,"ngModelChange","ngModel"],["aria-describedby","logs-page-heading",1,"table","table-sm","table-striped","table-bordered"],["jhiSort","",3,"predicateChange","ascendingChange","sortChange","predicate","ascending"],["jhiSortBy","name","scope","col"],["jhiTranslate","logs.table.name"],["icon","sort"],["jhiSortBy","level","scope","col"],["jhiTranslate","logs.table.level"],[4,"ngFor","ngForOf"],[1,"btn","btn-sm",3,"click","ngClass"]],template:function(e,o){1&e&&(t.DNE(0,b,40,8,"div",0),t.EFF(1,"\n")),2&e&&t.Y8G("ngIf",o.loggers)},dependencies:[c.me,c.BC,c.vS,l.YU,l.Sq,l.bT,u.aY,_.M,E.b,v._,l.P9],encapsulation:2})}}return s})(),data:{pageTitle:"logs.title"}};let R=(()=>{class s{static{this.\u0275fac=function(e){return new(e||s)}}static{this.\u0275mod=t.$C({type:s})}static{this.\u0275inj=t.G2t({imports:[d.G,F.iI.forChild([L])]})}}return s})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.