|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SyslogAdjusting
An interface defining functionality to change system-logger properties. This allows on-the-fly change of logging levels and adding/removing of loggers.
Because Sysloggers are not explicetly guaranteed to be serializable, adding and removing a logger is not aiming at the logger itself, but adding is done with providing the server with the new logger's properties. Removing is done using the name of the logger.
A class that allows access to a syslog-adjusting server is
SyslogAdmin.
| Method Summary | |
|---|---|
boolean |
addLogger(Map<String,String> log)
Adds a syslogger. |
void |
disableLogging()
Disables all loggings. |
void |
enableLogging()
Enables all loggings. |
List<String> |
getAllLoggers()
Returns a list of all logger names. |
com.protomatter.syslog.LogPolicy |
getLoggerPolicy(String name)
Returns a reference to the Syslogger's log policy using the name of the logger. |
void |
removeAllLoggers()
Removes all loggers. |
boolean |
removeLogger(String name)
Removes a logger. |
boolean |
setLoggerPolicy(String name,
com.protomatter.syslog.LogPolicy policy)
Sets the Syslogger's log policy using the name of the logger. |
| Method Detail |
|---|
com.protomatter.syslog.LogPolicy getLoggerPolicy(String name)
throws RemoteException
RemoteException
boolean setLoggerPolicy(String name,
com.protomatter.syslog.LogPolicy policy)
throws RemoteException
RemoteException
List<String> getAllLoggers()
throws RemoteException
RemoteException
boolean removeLogger(String name)
throws RemoteException
RemoteException
void removeAllLoggers()
throws RemoteException
RemoteException
boolean addLogger(Map<String,String> log)
throws RemoteException
RemoteException
void disableLogging()
throws RemoteException
RemoteException
void enableLogging()
throws RemoteException
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||