Commit d4f19882 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Fixed Jetty logging.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@296 b35dd754-fafc-0310-a699-88a17e54d16e
parent 483a9a82
...@@ -50,16 +50,18 @@ public class JettyModule implements Module { ...@@ -50,16 +50,18 @@ public class JettyModule implements Module {
public void initialize(Container container) { public void initialize(Container container) {
try { try {
// Configure logging to a file, creating log dir if needed // Configure logging to a file, creating log dir if needed
// File logDir = new File(JiveGlobals.getMessengerHome(), "logs"); System.setProperty("org.apache.commons.logging.LogFactory","org.mortbay.log.Factory");
// if (!logDir.exists()) { File logDir = new File(JiveGlobals.getMessengerHome(), "logs");
// logDir.mkdirs(); if (!logDir.exists()) {
// } logDir.mkdirs();
// File logFile = new File(logDir, "admin_console.log"); }
// OutputStreamLogSink logSink = new OutputStreamLogSink(logFile.toString()); File logFile = new File(logDir, "admin-console.log");
// logSink.start(); OutputStreamLogSink logSink = new OutputStreamLogSink(logFile.toString());
// LogImpl log = (LogImpl)Factory.getFactory().getInstance(""); logSink.start();
// log.reset(); LogImpl log = (LogImpl)Factory.getFactory().getInstance("");
// log.add(logSink); // Ignore INFO logs.
log.setVerbose(-1);
log.add(logSink);
jetty = new Server(); jetty = new Server();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment