To create a file appender, use the following rhino-console command or related MBean operation.

Console command: createfileappender

Command

createfileappender <appender-name> <filename>
    Create a file appender

Example

To append logging requests to a file in the work/log directory in each node’s directory:

$ ./rhino-console createfileappender myappender myappender.log
Done.

MBean operation: createFileAppender

MBean

Rhino operation

Create file appender with default maximum file size and backup file count
public void createFileAppender(String appenderName, String filename)
throws ConfigurationException;

Create file appender with specified maximum file size and backup file count
public void createFileAppender(String appenderName, String filename, String maxfilesize, Integer maxbackups)
      throws ConfigurationException;
Previous page Next page
Rhino Version 2.5.0