import { EventEmitter , Injectable } from "@angular/core" ; import { Logger , LoggingService } from "ionic-logging-service" ; /**
 * Service for storing filter settings for logging viewer.
 */ @ Injectable ( ) export class LoggingViewerFilterService { /**
     * Event triggered when the filter was changed.
     */ public filterChanged : EventEmitter < void > ; private logger : Logger ; private levelValue : string ; private searchValue : string ; param loggingService constructor ( loggingService ) { this . logger = loggingService . getLogger ( "Ionic.Logging.Viewer.Filter.Service" ) ; const methodName = "ctor" ; this . logger . entry ( methodName ) ; this . levelValue = "DEBUG" ; this . searchValue = "" ; this . filterChanged = new EventEmitter < void > ( ) ; this . logger . exit ( methodName ) ; } return public get level ( ) : string { return this . levelValue ; } param value public set level ( value ) { this . levelValue = value ; this . filterChanged . emit ( ) ; } return public get search ( ) : string { return this . searchValue ; } param value public set search ( value ) { this . searchValue = value ; this . filterChanged . emit ( ) ; } }