Skip to content

Commit

Permalink
feat: added reference to the log file inside gameLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
Scoppio committed Dec 20, 2024
1 parent 37aee40 commit bee1773
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion megamek/src/megamek/client/AbstractClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public synchronized void die() {
}
}

logger.info("%s client shutdown complete.", getName());
logger.info("{} client shutdown complete.", getName());
}

/** The client has become disconnected from the server */
Expand Down
4 changes: 4 additions & 0 deletions megamek/src/megamek/common/GameLog.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ protected void initialize() {
append("Log file opened " + LocalDateTime.now());
}

public File getLogFile() {
return logfile;
}

public void append(String toLog) {
if (writer == null) {
return;
Expand Down

0 comments on commit bee1773

Please sign in to comment.