Enable logging
This commit is contained in:
+3
-1
@@ -3,4 +3,6 @@
|
||||
|
||||
# Ignore Gradle build output directory
|
||||
build
|
||||
/logs/
|
||||
|
||||
logs/*.log
|
||||
logs/*.log.gz
|
||||
@@ -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("~/"))
|
||||
@@ -33,13 +34,13 @@ public class Main {
|
||||
System.exit(-1);
|
||||
}*/
|
||||
|
||||
//System.out.println("Initializing initial NenjimClassLoader with default context...");
|
||||
//JournalManager journalManager = new JournalManagerImpl();
|
||||
//ContextManager contextManager = new ContextManagerImpl();
|
||||
//Context defaultContext = contextManager.getDefault();
|
||||
//System.out.println("Initializing initial NenjimClassLoader with default context...");
|
||||
//JournalManager journalManager = new JournalManagerImpl();
|
||||
//ContextManager contextManager = new ContextManagerImpl();
|
||||
//Context defaultContext = contextManager.getDefault();
|
||||
|
||||
//NenjimClassLoader nenjimClassLoader = new NenjimClassLoader(journalManager, defaultContext);
|
||||
//Class<?> clazz = nenjimClassLoader.findClass("com.r35157.nenjim.hubd.impl.ref.NenjimHubImpl");
|
||||
//NenjimClassLoader nenjimClassLoader = new NenjimClassLoader(journalManager, defaultContext);
|
||||
//Class<?> clazz = nenjimClassLoader.findClass("com.r35157.nenjim.hubd.impl.ref.NenjimHubImpl");
|
||||
|
||||
/*NenjimHub nenjimHub = null;
|
||||
Context defaultContext = new Context();
|
||||
@@ -47,9 +48,14 @@ public class Main {
|
||||
Object instance = clazz.getDeclaredConstructor().newInstance();
|
||||
NenjimKicker kicker = (NenjimKicker)instance;
|
||||
*/
|
||||
//int a = 0;
|
||||
//int a = 0;
|
||||
} finally {
|
||||
log.info("NenjimHub shutdown!");
|
||||
}
|
||||
}
|
||||
|
||||
private void start() {
|
||||
}
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(Main.class);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user