To attach a file appender to a logger, use the following rhino-console command or related MBean operation.
Console command: addappenderref
Command |
addappenderref <log-key> <appender-name> Attach an appender to a logger |
---|---|
Example |
To configure log keys to output their logger’s messages to a specific file appender: $ ./rhino-console addappenderref root myappender Done. |
MBean operation: addAppenderRef
MBean |
|
---|---|
Rhino operation |
public void addAppenderRef(String logKey, String appenderRef) throws UnknownAppenderException, ValidationException, ConfigurationException; |