Enable logging
This commit is contained in:
+3
-1
@@ -3,4 +3,6 @@
|
|||||||
|
|
||||||
# Ignore Gradle build output directory
|
# Ignore Gradle build output directory
|
||||||
build
|
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.ctx.Context;
|
||||||
import com.r35157.nenjim.hubd.NenjimHub;
|
import com.r35157.nenjim.hubd.NenjimHub;
|
||||||
//import org.apache.logging.log4j.LogManager;
|
import org.slf4j.Logger;
|
||||||
//import org.apache.logging.log4j.Logger;
|
import org.slf4j.LoggerFactory;
|
||||||
import java.lang.management.ClassLoadingMXBean;
|
import java.lang.management.ClassLoadingMXBean;
|
||||||
import java.lang.management.ManagementFactory;
|
import java.lang.management.ManagementFactory;
|
||||||
|
|
||||||
@@ -19,8 +19,9 @@ public class Main {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Main(String[] args) throws Exception {
|
public Main(String[] args) throws Exception {
|
||||||
/*hub = new NenjimHubImpl();
|
|
||||||
log.info("Initializing NenjimHub...");
|
log.info("Initializing NenjimHub...");
|
||||||
|
try {
|
||||||
|
/*hub = new NenjimHubImpl();
|
||||||
|
|
||||||
String classesCacheDirRaw = "~/.config/nenjim/cache/classes";
|
String classesCacheDirRaw = "~/.config/nenjim/cache/classes";
|
||||||
String classesCacheDir = (classesCacheDirRaw.startsWith("~/"))
|
String classesCacheDir = (classesCacheDirRaw.startsWith("~/"))
|
||||||
@@ -33,13 +34,13 @@ public class Main {
|
|||||||
System.exit(-1);
|
System.exit(-1);
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
//System.out.println("Initializing initial NenjimClassLoader with default context...");
|
//System.out.println("Initializing initial NenjimClassLoader with default context...");
|
||||||
//JournalManager journalManager = new JournalManagerImpl();
|
//JournalManager journalManager = new JournalManagerImpl();
|
||||||
//ContextManager contextManager = new ContextManagerImpl();
|
//ContextManager contextManager = new ContextManagerImpl();
|
||||||
//Context defaultContext = contextManager.getDefault();
|
//Context defaultContext = contextManager.getDefault();
|
||||||
|
|
||||||
//NenjimClassLoader nenjimClassLoader = new NenjimClassLoader(journalManager, defaultContext);
|
//NenjimClassLoader nenjimClassLoader = new NenjimClassLoader(journalManager, defaultContext);
|
||||||
//Class<?> clazz = nenjimClassLoader.findClass("com.r35157.nenjim.hubd.impl.ref.NenjimHubImpl");
|
//Class<?> clazz = nenjimClassLoader.findClass("com.r35157.nenjim.hubd.impl.ref.NenjimHubImpl");
|
||||||
|
|
||||||
/*NenjimHub nenjimHub = null;
|
/*NenjimHub nenjimHub = null;
|
||||||
Context defaultContext = new Context();
|
Context defaultContext = new Context();
|
||||||
@@ -47,9 +48,14 @@ public class Main {
|
|||||||
Object instance = clazz.getDeclaredConstructor().newInstance();
|
Object instance = clazz.getDeclaredConstructor().newInstance();
|
||||||
NenjimKicker kicker = (NenjimKicker)instance;
|
NenjimKicker kicker = (NenjimKicker)instance;
|
||||||
*/
|
*/
|
||||||
//int a = 0;
|
//int a = 0;
|
||||||
|
} finally {
|
||||||
|
log.info("NenjimHub shutdown!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void start() {
|
private void start() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static final Logger log = LoggerFactory.getLogger(Main.class);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user