Java EE 5 SDK

com.sun.appserv.management.helper
Class LoggingHelper

java.lang.Object
  extended by com.sun.appserv.management.helper.Helper
      extended by com.sun.appserv.management.helper.LoggingHelper

public final class LoggingHelper
extends Helper

Helper class for simplifying access to logging.

Since:
AppServer 9.0

Field Summary
 
Fields inherited from class com.sun.appserv.management.helper.Helper
mBulkAccess, mDomainRoot, mQueryMgr
 
Constructor Summary
LoggingHelper(Logging logging)
          Create with default parameters.
 
Method Summary
 Logging getLogging()
           
 LogQueryResult[] queryAll()
          Get all available log records in all files for all modules of all available log levels.
 LogQueryResult queryAllCurrent()
          Get all available log records for all modules in the most current log file.
 LogQueryResult queryAllInFile(String name)
          Get all available log records for all modules in the specified log file.
 LogQueryResult queryServerLog(String logLevel)
          Get all log records of the specified error level or higher level for all modules in the most current log file.
 LogQueryResult queryServerLog(String logLevel, Set<String> modules)
          Get all log records of the specified error level or higher level for a all specified modules in the most current log file.
 LogQueryResult queryServerLog(String logLevel, String moduleID)
          Get all log records of the specified error level or higher level for a particular module in the most current log file.
 LogQueryResult queryServerLogRecent(long seconds)
          Get all available log records for all modules in the most current log file which have occurred within the last number of seconds.
 LogQueryResult queryServerLogRecent(long seconds, Set<String> modules)
          Get all available log records for all modules in the most current log file which have occurred within the last number of seconds.
 
Methods inherited from class com.sun.appserv.management.helper.Helper
filterByAttributeValue, getDomainRoot, propsQuery, propsQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingHelper

public LoggingHelper(Logging logging)
Create with default parameters.

Method Detail

getLogging

public Logging getLogging()

queryServerLog

public LogQueryResult queryServerLog(String logLevel,
                                     Set<String> modules)
Get all log records of the specified error level or higher level for a all specified modules in the most current log file.

See Also:
LogQuery, LogModuleNames

queryServerLog

public LogQueryResult queryServerLog(String logLevel,
                                     String moduleID)
Get all log records of the specified error level or higher level for a particular module in the most current log file.

See Also:
LogQuery

queryServerLog

public LogQueryResult queryServerLog(String logLevel)
Get all log records of the specified error level or higher level for all modules in the most current log file.

See Also:
LogQuery

queryAllCurrent

public LogQueryResult queryAllCurrent()
Get all available log records for all modules in the most current log file.

See Also:
LogQuery

queryServerLogRecent

public LogQueryResult queryServerLogRecent(long seconds)
Get all available log records for all modules in the most current log file which have occurred within the last number of seconds.

Parameters:
seconds -
See Also:
LogQuery

queryServerLogRecent

public LogQueryResult queryServerLogRecent(long seconds,
                                           Set<String> modules)
Get all available log records for all modules in the most current log file which have occurred within the last number of seconds.

Parameters:
seconds -
See Also:
LogQuery

queryAllInFile

public LogQueryResult queryAllInFile(String name)
Get all available log records for all modules in the specified log file.

See Also:
LogQuery

queryAll

public LogQueryResult[] queryAll()
Get all available log records in all files for all modules of all available log levels.

See Also:
LogQuery

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.