public class Console
{
- public static JLoggerLog4j log;
+ public static JLoggerLog4j log=null;
public static void debug(String message, Throwable t)
{
}
try
{
- JLogger.LogLevel cachedLevel = getCachedLogLevel();
+ JLogger.LogLevel cachedLevel=null;
+ if (System.getProperty("jalview.loglevel")!=null)
+ {
+ cachedLevel = JLogger.LogLevel.valueOf(System.getProperty("jalview.loglevel"));
+ }
+ if (cachedLevel==null) {
+ cachedLevel = getCachedLogLevel();
+ }
if (!Platform.isJS())
{
Log4j.init(cachedLevel);
// The main application logger
log = JLoggerLog4j.getLogger(Cache.JALVIEW_LOGGER_NAME, cachedLevel);
+ log.info("Logging initialised at level: "+cachedLevel);
} catch (NoClassDefFoundError e)
{
System.err.println("Could not initialise the logger framework");
#---JalviewX Properties File---
#Fri Apr 25 09:54:25 BST 2014
-#
+# Uncomment to enable debug logging
+# logs.Jalview.level=DEBUG
BACKUPFILES_ENABLED=true
BACKUPFILES_PRESET=0
BACKUPFILES_SAVED=_BACKUPFILESTESTTMP%n\t6\tfalse\tfalse\t2\tfalse