private void formatAndLogArguments(LoggingLevel level,Color color,String msg,Object[] args){
  if (!USE_COLORS) {
    formatAndLogArguments(level,msg,args);
    return;
  }
  if (PhotonLogger.level.id < level.id) {
    return;
  }
  LocalDateTime dateTime=LocalDateTime.now();
  FormattingTuple ft=MessageFormatter.arrayFormat(msg,args);
  String formatted=formatLogLine(level,dateTime,ft.getMessage());
  Throwable t=ft.getThrowable();
  if (t == null) {
    LoggingService.logLine(dateTime,formatted,color);
  }
 else {
    LoggingService.logThrowable(dateTime,t,formatted,color);
  }
}

private void formatAndLogArguments ( LoggingLevel level , Color color , String msg , Object [ ] args ) { if ( ! USE_COLORS ) { formatAndLogArguments ( level , msg , args ) ; return ; } if ( PhotonLogger . level . id < level . id ) { return ; } LocalDateTime dateTime = LocalDateTime . now ( ) ; FormattingTuple ft = MessageFormatter . arrayFormat ( msg , args ) ; String formatted = formatLogLine ( level , dateTime , ft . getMessage ( ) ) ; Throwable t = ft . getThrowable ( ) ; if ( t == null ) { LoggingService . logLine ( dateTime , formatted , color ) ; } else { LoggingService . logThrowable ( dateTime , t , formatted , color ) ; } }
formats and logs a message with arguments .
