Nearly finished client side logging

Client/src/logging/ClientLogger.java:
    -added printConfiramtion method

Client/src/networking/Client.java:
    - swapped out.println with clientLogger.printConfirmation
This commit is contained in:
2021-02-15 00:54:14 +01:00
parent 6b3306a416
commit 1942e249b5
8 changed files with 34 additions and 10 deletions

View File

@@ -44,4 +44,12 @@ public class ClientLogger {
public void printLog(String message, boolean success, LogType logType){
this.printLog(message, "server", success, logType);
}
public void printConfirmation(int code){
if (code == 200){
printLog(" Status: sent!", true, LogType.Log);
} else {
printLog(" Status: not sent!", false, LogType.Log);
}
}
}