Save This Page
Home » JBoss-5.1.0 » org » jboss » jetty » log » [javadoc | source]
org.jboss.jetty.log
public class: JBossLogSink [javadoc | source]
java.lang.Object
   org.jboss.jetty.log.JBossLogSink

All Implemented Interfaces:
    org.mortbay.util.LogSink

This class bidges the API between Jetty and Log4J.
Nested Class Summary:
interface  JBossLogSink.MyLogger   
Field Summary
 Logger _log     
 boolean _started     
 HashMap _dispatch     
Constructor:
 public JBossLogSink() 
Method from org.jboss.jetty.log.JBossLogSink Summary:
destroy,   getOptions,   initialize,   isDestroyed,   isStarted,   log,   log,   setOptions,   setOptions,   start,   stop
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.jetty.log.JBossLogSink Detail:
 public  void destroy() 
 public String getOptions() 
 public  void initialize(Object log) throws InterruptedException 
 public boolean isDestroyed() 
 public boolean isStarted() 
 public synchronized  void log(String formattedLog) 
    Log a message. The formatted log string is written to the log sink. The default implementation writes the message to a PrintWriter.
 public  void log(String tag,
    Object msg,
    Frame frame,
    long time) 
    Log a message. This method formats the log information as a string and calls log(String). It should only be specialized by a derived implementation if the format of the logged messages is to be changed.
 public  void setOptions(String logOptions) 
 public  void setOptions(String dateFormat,
    String timezone,
    boolean logTimeStamps,
    boolean logLabels,
    boolean logTags,
    boolean logStackSize,
    boolean logStackTrace,
    boolean logOneLine) 
 public  void start() 
 public  void stop() throws InterruptedException