org.n52.oxf.util
Class LoggingHandler

java.lang.Object
  extended by org.n52.oxf.util.LoggingHandler

public class LoggingHandler
extends Object

Author:
Arne Broering

Constructor Summary
LoggingHandler()
           
 
Method Summary
static void divertSystemErr(boolean divert)
           
static void divertSystemOut(boolean divert)
           
static org.apache.log4j.Logger getLogger(Class clazz)
           
static LoggingOutputStream getOutputStream()
           
static void setLevel(org.apache.log4j.Level level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingHandler

public LoggingHandler()
Method Detail

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.