IDEMPIERE-5548 Issues with Log Management (#1640)
* IDEMPIERE-5548 Issues with Log Management - removed the button Reload Log Props from the About Dialog as is now being reloaded when changing level * - set level also on handlers - restore the button Reload Log Props
This commit is contained in:
parent
1a095d2d0e
commit
d123de6452
|
@ -26,6 +26,7 @@ import java.util.Arrays;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Enumeration;
|
import java.util.Enumeration;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
@ -307,10 +308,26 @@ public class CLogMgt
|
||||||
{
|
{
|
||||||
initialize(true);
|
initialize(true);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for (Handler handler : handlers)
|
||||||
|
{
|
||||||
|
handler.setLevel(level);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// JDBC if ALL
|
// JDBC if ALL
|
||||||
setJDBCDebug(level.intValue() == Level.ALL.intValue());
|
setJDBCDebug(level.intValue() == Level.ALL.intValue());
|
||||||
//
|
|
||||||
|
// Set the log level for all the existing loggers
|
||||||
|
LogManager mgr = LogManager.getLogManager();
|
||||||
|
Iterator<String> ln = mgr.getLoggerNames().asIterator();
|
||||||
|
while (ln.hasNext())
|
||||||
|
{
|
||||||
|
String cl = ln.next();
|
||||||
|
CLogger.getCLogger(cl, false).setLevel(level);
|
||||||
|
}
|
||||||
|
getRootLogger().setLevel(level);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue