Replase system.println with logger

This commit is contained in:
SrdjanPaunovic
2017-06-04 20:49:15 +02:00
parent 09fb79099f
commit 85acb1cf6c
5 changed files with 27 additions and 14 deletions

View File

@ -1,6 +1,8 @@
package concreteextensions;
import abstractextensions.CommanderExtension;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import units.CommanderUnit;
/**
@ -14,8 +16,10 @@ public class Commander implements CommanderExtension {
this.unit = commanderUnit;
}
final Logger logger = LoggerFactory.getLogger(Commander.class);
@Override
public void commanderReady() {
System.out.println("[Commander] " + unit.getName() + " is ready!");
logger.info("[Commander] " + unit.getName() + " is ready!");
}
}