Skip to content

Commit

Permalink
Add temporary logger
Browse files Browse the repository at this point in the history
Just in-case it's somehow used before the plugin is initialized
  • Loading branch information
srnyx committed Nov 4, 2023
1 parent 74174ba commit 98c5b99
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion api/src/main/java/xyz/srnyx/annoyingapi/AnnoyingPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import java.lang.reflect.Modifier;
import java.util.*;
import java.util.logging.Level;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
import java.util.stream.Collectors;

Expand All @@ -49,7 +50,13 @@ public class AnnoyingPlugin extends JavaPlugin {
/**
* The {@link Logger} for the plugin
*/
public static Logger LOGGER;
@NotNull public static Logger LOGGER = new Logger("AnnoyingAPI - ?", null) {
@Override
public void log(@NotNull LogRecord logRecord) {
logRecord.setMessage("[AnnoyingAPI - ?] " + logRecord.getMessage());
super.log(logRecord);
}
};
/**
* The Minecraft version the server is running
*/
Expand Down

0 comments on commit 98c5b99

Please sign in to comment.