Enable logging

This commit is contained in:
2026-06-18 09:58:24 +02:00
parent affe6bba7f
commit f44bdc4b8b
3 changed files with 19 additions and 11 deletions
+3 -1
View File
@@ -3,4 +3,6 @@
# Ignore Gradle build output directory
build
/logs/
logs/*.log
logs/*.log.gz
View File
@@ -2,8 +2,8 @@ package com.r35157.nenjim.hubd.impl.ref;
import com.r35157.nenjim.hubd.ctx.Context;
import com.r35157.nenjim.hubd.NenjimHub;
//import org.apache.logging.log4j.LogManager;
//import org.apache.logging.log4j.Logger;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.management.ClassLoadingMXBean;
import java.lang.management.ManagementFactory;
@@ -19,8 +19,9 @@ public class Main {
}
public Main(String[] args) throws Exception {
/*hub = new NenjimHubImpl();
log.info("Initializing NenjimHub...");
try {
/*hub = new NenjimHubImpl();
String classesCacheDirRaw = "~/.config/nenjim/cache/classes";
String classesCacheDir = (classesCacheDirRaw.startsWith("~/"))
@@ -48,8 +49,13 @@ public class Main {
NenjimKicker kicker = (NenjimKicker)instance;
*/
//int a = 0;
} finally {
log.info("NenjimHub shutdown!");
}
}
private void start() {
}
private static final Logger log = LoggerFactory.getLogger(Main.class);
}