refs #10
Fixed logging regression due to changes from EvA2Info.defaultLogger to correct namespace based logging.
This commit is contained in:
parent
39b4158210
commit
31dbdfd205
@ -45,7 +45,7 @@ public class EvAInfo {
|
||||
public static final String infoTitle = productName+" Information";
|
||||
public static final String copyrightYear = "2010-2012";
|
||||
|
||||
public static final String defaultLogger = "EvA2";
|
||||
public static final String defaultLogger = "eva2";
|
||||
|
||||
////////////// Property handling...
|
||||
|
||||
|
@ -9,6 +9,7 @@ import java.awt.event.ActionListener;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.awt.event.MouseListener;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.LogManager;
|
||||
import java.util.logging.Logger;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JMenuItem;
|
||||
@ -91,8 +92,9 @@ public final class LoggingLevelLabel extends JLabel {
|
||||
*
|
||||
* @param level The new level for the logger
|
||||
*/
|
||||
private void setLoggerLevel(Level level) {
|
||||
logger.setLevel(level);
|
||||
private void setLoggerLevel(Level level) {
|
||||
// Recursively set logging level for all classes under eva2
|
||||
Logger.getLogger("eva2").setLevel(level);
|
||||
logger.log(Level.INFO, "Logging Level changed to {0}", level.getName());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user