#502 Replaced usages of System.out with logger.

This commit is contained in:
daniel-bryla
2016-10-23 19:59:03 +02:00
parent 4ca205c03c
commit 0438811489
154 changed files with 1155 additions and 792 deletions

View File

@ -22,6 +22,9 @@
*/
package com.iluwatar.stepbuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Step Builder Pattern
*
@ -56,6 +59,8 @@ package com.iluwatar.stepbuilder;
*/
public class App {
private static final Logger LOGGER = LoggerFactory.getLogger(App.class);
/**
* Program entry point
*
@ -67,18 +72,18 @@ public class App {
CharacterStepBuilder.newBuilder().name("Amberjill").fighterClass("Paladin")
.withWeapon("Sword").noAbilities().build();
System.out.println(warrior);
LOGGER.info(warrior.toString());
Character mage =
CharacterStepBuilder.newBuilder().name("Riobard").wizardClass("Sorcerer")
.withSpell("Fireball").withAbility("Fire Aura").withAbility("Teleport")
.noMoreAbilities().build();
System.out.println(mage);
LOGGER.info(mage.toString());
Character thief =
CharacterStepBuilder.newBuilder().name("Desmond").fighterClass("Rogue").noWeapon().build();
System.out.println(thief);
LOGGER.info(thief.toString());
}
}