com.pelzer.util
Class Logging

java.lang.Object
  extended by com.pelzer.util.Logging

public final class Logging
extends Object

The Logging system is used to output informational and logging messages to the console. Uses the java.util.logging system.


Nested Class Summary
static class Logging.LogFormatter
           
static class Logging.Logger
          Wrapper class around our logging...
static class Logging.Priority
          This class has been added to wrap the older Log4j-style priorities into the SDK-style Levels.
 
Method Summary
static Logging.Logger getLogger(Class<?> loggedClass)
          Convenience method, same as doing getLogger(loggedClass.getName())
static Logging.Logger getLogger(Object loggedObject)
          Convenience method, same as doing getLogger(loggedObject.getClass().getName())
static Logging.Logger getLogger(String node)
          This is the new, official way to get a logger from the Logging system.
static boolean isMuted()
           
static void mute()
          Turns off all debugging until unmute() is called or the system shuts down.
static void unmute()
          Turns logging back on after calling mute()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLogger

public static Logging.Logger getLogger(String node)
This is the new, official way to get a logger from the Logging system. Returns a custom wrapper class that allows the normal debug(), info(), warn(), error(), fatal() methods, as well as custom stuff.


getLogger

public static Logging.Logger getLogger(Class<?> loggedClass)
Convenience method, same as doing getLogger(loggedClass.getName())


getLogger

public static Logging.Logger getLogger(Object loggedObject)
Convenience method, same as doing getLogger(loggedObject.getClass().getName())


mute

public static void mute()
Turns off all debugging until unmute() is called or the system shuts down.


unmute

public static void unmute()
Turns logging back on after calling mute()


isMuted

public static boolean isMuted()
Returns:
true if the logging system is currently muted.
See Also:
mute(), unmute()


Copyright © 2012. All Rights Reserved.