diff src/ch/ethz/ssh2/log/Logger.java @ 308:42b15aaa7ac7 ganymed

merge
author Carl Byington <carl@five-ten-sg.com>
date Wed, 30 Jul 2014 14:21:50 -0700
parents 071eccdff8ea
children d835e842d158
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/log/Logger.java	Wed Jul 30 13:38:04 2014 -0700
+++ b/src/ch/ethz/ssh2/log/Logger.java	Wed Jul 30 14:21:50 2014 -0700
@@ -14,56 +14,47 @@
  * @author Christian Plattner
  * @version $Id: Logger.java 49 2013-08-01 12:28:42Z cleondris@gmail.com $
  */
-public class Logger
-{
-	private java.util.logging.Logger delegate;
+public class Logger {
+    private java.util.logging.Logger delegate;
 
-	public static boolean enabled = false;
+    public static boolean enabled = false;
 
-	public static Logger getLogger(Class<?> x)
-	{
-		return new Logger(x);
-	}
+    public static Logger getLogger(Class<?> x) {
+        return new Logger(x);
+    }
 
-	public Logger(Class<?> x)
-	{
-		this.delegate = java.util.logging.Logger.getLogger(x.getName());
-	}
+    public Logger(Class<?> x) {
+        this.delegate = java.util.logging.Logger.getLogger(x.getName());
+    }
 
     public final boolean isEnabled() {
         return enabled;
     }
 
-	public boolean isDebugEnabled()
-	{
-		return enabled && delegate.isLoggable(Level.FINER);
-	}
+    public boolean isDebugEnabled() {
+        return enabled && delegate.isLoggable(Level.FINER);
+    }
 
-	public void debug(String message)
-	{
-		if (enabled)
-			delegate.fine(message);
-	}
+    public void debug(String message) {
+        if (enabled)
+            delegate.fine(message);
+    }
 
-	public boolean isInfoEnabled()
-	{
-		return enabled && delegate.isLoggable(Level.FINE);
-	}
+    public boolean isInfoEnabled() {
+        return enabled && delegate.isLoggable(Level.FINE);
+    }
 
-	public void info(String message)
-	{
-		if (enabled)
-			delegate.info(message);
-	}
+    public void info(String message) {
+        if (enabled)
+            delegate.info(message);
+    }
 
-	public boolean isWarningEnabled()
-	{
-		return enabled && delegate.isLoggable(Level.WARNING);
-	}
+    public boolean isWarningEnabled() {
+        return enabled && delegate.isLoggable(Level.WARNING);
+    }
 
-	public void warning(String message)
-	{
-		if (enabled)
-			delegate.warning(message);
-	}
+    public void warning(String message) {
+        if (enabled)
+            delegate.warning(message);
+    }
 }
\ No newline at end of file