155156157158159160161162163164165
service.logWarn(randomMessage); countWarn++; break; case 3: // ERROR service.logError(randomMessage); countError++; break; } } return String.format("%d random logs [%d for %s, %d for %s]: INFO - %d, DEBUG - %d, WARN - %d, ERROR - %d", count,