Restore the editor's log to its previous splendor.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@973 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
package com.threerings.stage.tools.editor;
|
package com.threerings.stage.tools.editor;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.logging.LogManager;
|
||||||
|
|
||||||
import java.io.BufferedOutputStream;
|
import java.io.BufferedOutputStream;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
@@ -97,6 +98,9 @@ public class EditorApp implements Runnable
|
|||||||
new BufferedOutputStream(new FileOutputStream(dlog)), true);
|
new BufferedOutputStream(new FileOutputStream(dlog)), true);
|
||||||
System.setOut(logOut);
|
System.setOut(logOut);
|
||||||
System.setErr(logOut);
|
System.setErr(logOut);
|
||||||
|
// LogManager caches stderr, that's changed, so reconfigure.
|
||||||
|
LogManager.getLogManager().readConfiguration();
|
||||||
|
|
||||||
log.info("Opened debug log '" + dlog + "'.");
|
log.info("Opened debug log '" + dlog + "'.");
|
||||||
|
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
|
|||||||
Reference in New Issue
Block a user