org.apache.karaf.shell.log
Class DisplayLog

java.lang.Object
  extended by org.apache.karaf.shell.console.AbstractAction
      extended by org.apache.karaf.shell.console.OsgiCommandSupport
          extended by org.apache.karaf.shell.log.DisplayLog
All Implemented Interfaces:
org.apache.felix.gogo.commands.Action, org.apache.karaf.shell.console.BundleContextAware
Direct Known Subclasses:
LogTail

public class DisplayLog
extends org.apache.karaf.shell.console.OsgiCommandSupport

Displays the last log entries


Field Summary
protected  String debugColor
           
protected  int entries
           
protected  String errorColor
           
protected  LruList events
           
protected  String fatalColor
           
protected  String infoColor
           
protected  boolean noColor
           
protected  String overridenPattern
           
protected  String pattern
           
protected  String traceColor
           
protected  String warnColor
           
 
Fields inherited from class org.apache.karaf.shell.console.OsgiCommandSupport
bundleContext, usedReferences
 
Fields inherited from class org.apache.karaf.shell.console.AbstractAction
log, session
 
Constructor Summary
DisplayLog()
           
 
Method Summary
protected  void display(PatternConverter cnv, org.ops4j.pax.logging.spi.PaxLoggingEvent event, PrintStream stream)
           
protected  Object doExecute()
           
 String getDebugColor()
           
 String getErrorColor()
           
 LruList getEvents()
           
 String getFatalColor()
           
 String getInfoColor()
           
 String getPattern()
           
 String getTraceColor()
           
 String getWarnColor()
           
 void setDebugColor(String debugColor)
           
 void setErrorColor(String errorColor)
           
 void setEvents(LruList events)
           
 void setFatalColor(String fatalColor)
           
 void setInfoColor(String infoColor)
           
 void setPattern(String pattern)
           
 void setTraceColor(String traceColor)
           
 void setWarnColor(String warnColor)
           
 
Methods inherited from class org.apache.karaf.shell.console.OsgiCommandSupport
execute, getAllServices, getBundleContext, getService, setBundleContext, ungetServices
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entries

protected int entries

overridenPattern

protected String overridenPattern

noColor

protected boolean noColor

pattern

protected String pattern

events

protected LruList events

fatalColor

protected String fatalColor

errorColor

protected String errorColor

warnColor

protected String warnColor

infoColor

protected String infoColor

debugColor

protected String debugColor

traceColor

protected String traceColor
Constructor Detail

DisplayLog

public DisplayLog()
Method Detail

getEvents

public LruList getEvents()

setEvents

public void setEvents(LruList events)

getPattern

public String getPattern()

setPattern

public void setPattern(String pattern)

getFatalColor

public String getFatalColor()

setFatalColor

public void setFatalColor(String fatalColor)

getErrorColor

public String getErrorColor()

setErrorColor

public void setErrorColor(String errorColor)

getWarnColor

public String getWarnColor()

setWarnColor

public void setWarnColor(String warnColor)

getInfoColor

public String getInfoColor()

setInfoColor

public void setInfoColor(String infoColor)

getDebugColor

public String getDebugColor()

setDebugColor

public void setDebugColor(String debugColor)

getTraceColor

public String getTraceColor()

setTraceColor

public void setTraceColor(String traceColor)

doExecute

protected Object doExecute()
                    throws Exception
Specified by:
doExecute in class org.apache.karaf.shell.console.AbstractAction
Throws:
Exception

display

protected void display(PatternConverter cnv,
                       org.ops4j.pax.logging.spi.PaxLoggingEvent event,
                       PrintStream stream)


Copyright © 2007-2012 FuseSource, Corp.. All Rights Reserved.