JAVA-18116 Review log statements for projects - Week 7 - 2023 (#13583)

JAVA-18116 Review log statements for projects - Week 7 - 2023 (#13583)
---------

Co-authored-by: jogra <joseph.sterling.grah@miles.no>
This commit is contained in:
jsgrah-spring
2023-04-10 13:35:40 +02:00
committed by GitHub
parent 26790b429f
commit 23c1abe3f2
12 changed files with 99 additions and 23 deletions
@@ -1,5 +1,8 @@
package com.baeldung.templatemethod.model;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class HighEndComputerBuilder extends ComputerBuilder {
@Override
@@ -11,7 +14,7 @@ public class HighEndComputerBuilder extends ComputerBuilder {
public void setupMotherboard() {
motherboardSetupStatus.add("Screwing the high-end motherboard to the case.");
motherboardSetupStatus.add("Pluging in the power supply connectors.");
motherboardSetupStatus.forEach(step -> System.out.println(step));
motherboardSetupStatus.forEach(step -> log.debug(step));
}
@Override
@@ -1,5 +1,8 @@
package com.baeldung.templatemethod.model;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class StandardComputerBuilder extends ComputerBuilder {
@Override
@@ -11,7 +14,7 @@ public class StandardComputerBuilder extends ComputerBuilder {
public void setupMotherboard() {
motherboardSetupStatus.add("Screwing the standard motherboard to the case.");
motherboardSetupStatus.add("Pluging in the power supply connectors.");
motherboardSetupStatus.forEach(step -> System.out.println(step));
motherboardSetupStatus.forEach(step -> log.debug(step));
}
@Override