Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.logging
Interface Log4jServiceMBean

All Superinterfaces:
  org.jboss.system.Service, org.jboss.system.ServiceMBean

All Known Implementing Classes:
  Log4jService

public interface Log4jServiceMBean
extends org.jboss.system.ServiceMBean

MBean interface.

Field Summary
`static javax.management.ObjectName` | `OBJECT_NAME`

Fields inherited from interface org.jboss.system.ServiceMBean
`CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED`

Method Summary
`boolean` | `getCatchSystemErr()` Get the catch `System.err` flag.
`boolean` | `getCatchSystemOut()` Get the catch `System.out` flag.
`URL` | `getConfigurationURL()` Get the Log4j configuration URL.
`boolean` | `getLog4jQuietMode()` Get the org.apache.log4j.helpers.LogLog.setQuietMode flag
`String` | `getLoggerLevel(String name)` Gets the level of the logger of the give name.
`int` | `getRefreshPeriod()` Get the refresh period.
`void` | `reconfigure()` Force the logging system to reconfigure.
`void` | `reconfigure(String url)` Hack to reconfigure and change the URL.
`void` | `setCatchSystemErr(boolean flag)` Set the catch `System.err` flag.
`void` | `setCatchSystemOut(boolean flag)` Set the catch `System.out` flag.
`void` | `setConfigurationURL(URL url)` Set the Log4j configuration URL.
`void` | `setLog4jQuietMode(boolean flag)` Set the org.apache.log4j.helpers.LogLog.setQuietMode flag
`void` | `setLoggerLevel(String name, String levelName)` Sets the level for a logger of the give name.
`void` | `setLoggerLevels(String list, String levelName)` Sets the levels of each logger specified by the given comma seperated list of logger names.
`void` | `setRefreshPeriod(int refreshPeriod)` Set the refresh period.

Methods inherited from interface org.jboss.system.ServiceMBean
`getName, getState, getStateString, jbossInternalLifecycle`

Methods inherited from interface org.jboss.system.Service
`create, destroy, start, stop`

Field Detail

### OBJECT_NAME

    public static final javax.management.ObjectName OBJECT_NAME

Method Detail

### setCatchSystemOut

    public void setCatchSystemOut(boolean flag)

  Set the catch `System.out` flag.

  Parameters:
    `flag` - True to enable, false to disable.

### getCatchSystemOut

    public boolean getCatchSystemOut()

  Get the catch `System.out` flag.

  Returns:
    True if enabled, false if disabled.

### setCatchSystemErr

    public void setCatchSystemErr(boolean flag)

  Set the catch `System.err` flag.

  Parameters:
    `flag` - True to enable, false to disable.

### getCatchSystemErr

    public boolean getCatchSystemErr()

  Get the catch `System.err` flag.

  Returns:
    True if enabled, false if disabled.

### getLog4jQuietMode

    public boolean getLog4jQuietMode()

  Get the org.apache.log4j.helpers.LogLog.setQuietMode flag

  Returns:
    True if enabled, false if disabled.

### setLog4jQuietMode

    public void setLog4jQuietMode(boolean flag)

  Set the org.apache.log4j.helpers.LogLog.setQuietMode flag

  Returns:
    True if enabled, false if disabled.

### getRefreshPeriod

    public int getRefreshPeriod()

  Get the refresh period.

### setRefreshPeriod

    public void setRefreshPeriod(int refreshPeriod)

  Set the refresh period.

### getConfigurationURL

    public URL getConfigurationURL()

  Get the Log4j configuration URL.

### setConfigurationURL

    public void setConfigurationURL(URL url)

  Set the Log4j configuration URL.

### setLoggerLevel

    public void setLoggerLevel(String name,
                               String levelName)

  Sets the level for a logger of the give name.

  Values are trimmed before used.

  Parameters:
    `name` - The name of the logger to change level
    `levelName` - The name of the level to change the logger to.

### setLoggerLevels

    public void setLoggerLevels(String list,
                                String levelName)

  Sets the levels of each logger specified by the given comma seperated list of logger names.

  Parameters:
    `list` - A comma seperated list of logger names.
    `levelName` - The name of the level to change the logger to.
  See Also:
    `setLoggerLevel(java.lang.String, java.lang.String)`

### getLoggerLevel

    public String getLoggerLevel(String name)

  Gets the level of the logger of the give name.

  Parameters:
    `name` - The name of the logger to inspect.

### reconfigure

    public void reconfigure()
                     throws IOException

  Force the logging system to reconfigure.

  Throws:
    `IOException`

### reconfigure

    public void reconfigure(String url)
                     throws IOException,
                            MalformedURLException

  Hack to reconfigure and change the URL. This is needed until we have a JMX HTML Adapter that can use PropertyEditor to coerce.

  Parameters:
    `url` - The new configuration url
  Throws:
    `IOException`
    `MalformedURLException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002 JBoss Group, LLC. All Rights Reserved.