|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
LoggerControl is an interface for enumerating the list of loggers, and for setting the level of a logger.
Method Summary | |
---|---|
void |
addSocketHandler(java.lang.String loggerName,
java.lang.String host,
int port)
Adds a SocketHandler for a logger |
java.util.ArrayList |
getLoggerNames()
Returns an array of the current logger names. |
void |
readConfiguration()
Reloads the configuration file for logger properties |
void |
removeSocketHandler(java.lang.String loggerName,
java.lang.String host,
int port)
Removes a SocketHandler for a logger |
void |
setLoggerLevel(java.lang.String loggerName,
java.lang.String level)
Sets the level of a logger. |
Method Detail |
public void setLoggerLevel(java.lang.String loggerName, java.lang.String level) throws java.rmi.RemoteException, AEFException
loggerName
- The name of the logger.level
- Valid levels are: SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST
java.rmi.RemoteException
AEFException
- Among the possible AEFException error codes are:
public void readConfiguration() throws java.rmi.RemoteException, java.io.IOException
java.rmi.RemoteException
java.rmi.IOException
java.io.IOException
public void addSocketHandler(java.lang.String loggerName, java.lang.String host, int port) throws java.rmi.RemoteException, AEFException, java.io.IOException
loggerName
- The name of the logger.host
- The host to log to.port
- The port to log to.
java.rmi.RemoteException
java.rmi.IOException
AEFException
- Among the possible AEFException error codes are:
java.io.IOException
public void removeSocketHandler(java.lang.String loggerName, java.lang.String host, int port) throws java.rmi.RemoteException, AEFException, java.io.IOException
loggerName
- The name of the logger.host
- The host to log to.port
- The port to log to.
java.rmi.RemoteException
java.rmi.IOException
AEFException
- Among the possible AEFException error codes are:
java.io.IOException
public java.util.ArrayList getLoggerNames() throws java.rmi.RemoteException
java.rmi.RemoteException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |