Up version and fixed format
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>com.minster586</groupId>
|
||||
<artifactId>ServerDevMode</artifactId>
|
||||
<version>1.0.1</version>
|
||||
<version>1.0.2</version>
|
||||
<packaging>jar</packaging>
|
||||
<name>ServerDevMode</name>
|
||||
<description>Development mode plugin for Minecraft servers—tracing events and debugging logs</description>
|
||||
|
@@ -35,9 +35,11 @@ public class LogWriter {
|
||||
String fileName = category + "." + fileExtension;
|
||||
File file = new File(folderPath, fileName);
|
||||
|
||||
// Only replace ' | ' with ',' in the message, not the timestamp
|
||||
try (BufferedWriter writer = new BufferedWriter(new FileWriter(file, true))) {
|
||||
String timestamp = timestampFormatter.format(new Date());
|
||||
String entry = timestamp + "," + message;
|
||||
String formattedMessage = message.replace(" | ", ",");
|
||||
String entry = timestamp + "," + formattedMessage;
|
||||
writer.write(entry);
|
||||
writer.newLine();
|
||||
} catch (IOException e) {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
name: ServerDevMode
|
||||
version: 1.0.1
|
||||
version: 1.0.2
|
||||
main: com.minster586.devmode.ServerDevMode
|
||||
api-version: 1.16
|
||||
description: Server-wide development mode plugin for event tracing, chat logging, and debugging support.
|
||||
|
Reference in New Issue
Block a user