private static int logger ( int level , String message , Throwable throwable ) { if ( QuickUtils . shouldShowLogs ( ) ) { switch ( level ) { case QuickUtils . DEBUG : return android . util . Log . d ( QuickUtils . TAG , message , throwable ) ; case QuickUtils . VERBOSE : return android . util . Log . v ( QuickUtils . TAG , message , throwable ) ; case QuickUtils . INFO : return android . util . Log . i ( QuickUtils . TAG , message , throwable ) ; case QuickUtils . WARN : return android . util . Log . w ( QuickUtils . TAG , message , throwable ) ; case QuickUtils . ERROR : return android . util . Log . e ( QuickUtils . TAG , message , throwable ) ; default : break ; } } return - 1 ; }
Private Logger function to handle Log calls