org.jboss.osgi.spi.logging
Class LogEntryFilter

java.lang.Object
  extended by org.jboss.osgi.spi.logging.LogEntryFilter

public class LogEntryFilter
extends java.lang.Object

A LogEntry filter that can be used with the LogEntryCache

Since:
09-Apr-2009
Author:
thomas.diesler@jboss.com

Constructor Summary
LogEntryFilter(java.lang.String bndRegex)
          Create a LogEntryFilter with the associated criteria.
LogEntryFilter(java.lang.String bndRegex, int level)
          Create a LogEntryFilter with the associated criteria.
LogEntryFilter(java.lang.String bndRegex, int level, java.lang.String msgRegex)
          Create a LogEntryFilter with the associated criteria.
 
Method Summary
 java.lang.String getBundleRegex()
          Get the Bundle Symbolic-Name regex.
 int getLevel()
          Get the log entry maximum log level.
 java.lang.String getMessageRegex()
          Get the log message regex.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogEntryFilter

public LogEntryFilter(java.lang.String bndRegex,
                      int level,
                      java.lang.String msgRegex)
Create a LogEntryFilter with the associated criteria.

Parameters:
bndRegex - A regex that matches a Bundle's SymbolicName
level - The maximum log level accepted by this filter
msgRegex - A regex that matches the log message

LogEntryFilter

public LogEntryFilter(java.lang.String bndRegex,
                      int level)
Create a LogEntryFilter with the associated criteria.

Parameters:
bndRegex - A regex that matches a Bundle's SymbolicName
level - The maximum log level accepted by this filter

LogEntryFilter

public LogEntryFilter(java.lang.String bndRegex)
Create a LogEntryFilter with the associated criteria.

Parameters:
bndRegex - A regex that matches a Bundle's SymbolicName
Method Detail

getBundleRegex

public java.lang.String getBundleRegex()
Get the Bundle Symbolic-Name regex.


getMessageRegex

public java.lang.String getMessageRegex()
Get the log message regex.


getLevel

public int getLevel()
Get the log entry maximum log level.



Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.