import { Injectable } from "@angular/core" ; @ Injectable ( ) export class SkeletonService { log2 ( logType , message , data ? ) { if ( data ) { return ( console as any ) [ logType ] ( message , data ) ; } ( console as any ) [ logType ] ( message ) ; } }