src/org/sonews/util/Log.java
changeset 77 623025c704c5
parent 35 ed84c8bdd87b
     1.1 --- a/src/org/sonews/util/Log.java	Sun Aug 29 17:28:58 2010 +0200
     1.2 +++ b/src/org/sonews/util/Log.java	Fri Oct 14 12:41:14 2011 +0200
     1.3 @@ -33,25 +33,24 @@
     1.4  public class Log extends Logger
     1.5  {
     1.6  
     1.7 -  private static Log instance = new Log();
     1.8 +	private static Log instance = new Log();
     1.9  
    1.10 -  private Log()
    1.11 -  {
    1.12 -    super("org.sonews", null);
    1.13 +	private Log()
    1.14 +	{
    1.15 +		super("org.sonews", null);
    1.16  
    1.17 -    StreamHandler handler = new StreamHandler(System.out, new SimpleFormatter());
    1.18 -    Level level = Level.parse(Config.inst().get(Config.LOGLEVEL, "INFO"));
    1.19 -    handler.setLevel(level);
    1.20 -    addHandler(handler);
    1.21 -    setLevel(level);
    1.22 -    LogManager.getLogManager().addLogger(this);
    1.23 -  }
    1.24 +		StreamHandler handler = new StreamHandler(System.out, new SimpleFormatter());
    1.25 +		Level level = Level.parse(Config.inst().get(Config.LOGLEVEL, "INFO"));
    1.26 +		handler.setLevel(level);
    1.27 +		addHandler(handler);
    1.28 +		setLevel(level);
    1.29 +		LogManager.getLogManager().addLogger(this);
    1.30 +	}
    1.31  
    1.32 -  public static Logger get()
    1.33 -  {
    1.34 -    Level level = Level.parse(Config.inst().get(Config.LOGLEVEL, "INFO"));
    1.35 -    instance.setLevel(level);
    1.36 -    return instance;
    1.37 -  }
    1.38 -
    1.39 +	public static Logger get()
    1.40 +	{
    1.41 +		Level level = Level.parse(Config.inst().get(Config.LOGLEVEL, "INFO"));
    1.42 +		instance.setLevel(level);
    1.43 +		return instance;
    1.44 +	}
    1.45  }