wt.log4j.jmx
Interface FileAppenderMonitorMBean

All Superinterfaces:
AppenderMonitorMBean, SelfEmailingMBean
All Known Subinterfaces:
RollingFileAppenderMonitorMBean

public interface FileAppenderMonitorMBean
extends AppenderMonitorMBean

Log4j file appender

Supported API: true

Extendable: true


Method Summary
 void emailLog(String addressesOrEmailList, String subject, boolean compress)
          E-mail entire log file as attachment, optionally compressing it

Supported API: true
 void emailLog(String addressesOrEmailList, String subject, long maxLines, long maxChars)
          E-mail last portion of a log file

Supported API: true
 String[] viewLog()
          View log file (or rather last "reasonable" portion thereof)

Supported API: true
 String[] viewLog(long maxLines, long maxChars)
          View last portion of log file

Supported API: true
 
Methods inherited from interface wt.log4j.jmx.AppenderMonitorMBean
getAppenderClassname, getLayout, setLayout
 
Methods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
 

Method Detail

viewLog

String[] viewLog()
                 throws Exception
View log file (or rather last "reasonable" portion thereof)

Supported API: true

Throws:
Exception

viewLog

String[] viewLog(long maxLines,
                 long maxChars)
                 throws Exception
View last portion of log file

Supported API: true

Parameters:
maxLines - Maximum number of lines to include; non-positive numbers imply no limit
maxChars - Maximum number of characters to include; non-positive numbers imply no limit
Throws:
Exception

emailLog

void emailLog(String addressesOrEmailList,
              String subject,
              boolean compress)
              throws Exception
E-mail entire log file as attachment, optionally compressing it

Supported API: true

Parameters:
addressesOrEmailList - Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail to
subject - Subject to give e-mail
compress - Whether to compress file attachment
Throws:
Exception

emailLog

void emailLog(String addressesOrEmailList,
              String subject,
              long maxLines,
              long maxChars)
              throws Exception
E-mail last portion of a log file

Supported API: true

Parameters:
addressesOrEmailList - Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail to
subject - Subject to give e-mail
maxLines - Maximum number of lines to include; non-positive numbers imply no limit
maxChars - Maximum number of characters to include; non-positive numbers imply no limit
Throws:
Exception