org.n52.oxf.util
Class LoggingHandler
java.lang.Object
org.n52.oxf.util.LoggingHandler
public class LoggingHandler
- extends Object
- Author:
- Arne Broering
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggingHandler
public LoggingHandler()
getLogger
public static org.apache.log4j.Logger getLogger(Class clazz)
- Parameters:
clazz -
- Returns:
getOutputStream
public static LoggingOutputStream getOutputStream()
- Returns:
- the LoggingOutputStream to which the messages will be logged.
This LoggingOutputStream can be used for example to print the logging-statements into a separate
message-concole of a GUI.
setLevel
public static void setLevel(org.apache.log4j.Level level)
- Parameters:
level - - valid values: OFF, FATAL, ERROR, WARN, INFO, DEBUG and ALL
divertSystemErr
public static void divertSystemErr(boolean divert)
divertSystemOut
public static void divertSystemOut(boolean divert)
Copyright © 2005 - 2010 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.