net.codesmarts.log4j
Class BugsGenieBugReportAppender

java.lang.Object
  extended byorg.apache.log4j.AppenderSkeleton
      extended bynet.codesmarts.log4j.AbstractBugReportAppender
          extended bynet.codesmarts.log4j.AbstractHttpBugReportAppender
              extended bynet.codesmarts.log4j.BugsGenieBugReportAppender
All Implemented Interfaces:
org.apache.log4j.Appender, BugReportAppender, org.apache.log4j.spi.OptionHandler

public class BugsGenieBugReportAppender
extends AbstractHttpBugReportAppender

Appender to file Bug Reports into the Bugs Genie bug tracking system (http://bugs-bug-genie.sourceforge.net/)

Author:
Fred McCann

Field Summary
protected  java.lang.String application
           
protected  java.lang.String assignTo
           
protected  java.lang.String bugsPassword
           
protected  java.lang.String bugsUsername
           
protected  java.lang.String build
           
protected  java.lang.String category
           
protected  java.lang.String edition
           
protected  java.lang.String product
           
protected  java.lang.String status
           
protected  java.lang.String url
           
 
Fields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
 
Constructor Summary
BugsGenieBugReportAppender()
           
 
Method Summary
 void append(BugReport report)
          Append a bug report
 void init()
          initialize appender
 void setApplication(java.lang.String application)
          Set the Bugs Genie application for this appender
 void setAssignTo(java.lang.String assignTo)
          Set the Bugs Genie user to whom to assign bugs.
 void setBugsPassword(java.lang.String bugsPassword)
          Set the Bugs Genie password for this appender
 void setBugsUsername(java.lang.String bugsUsername)
          Set the Bugs Genie username for this appender
 void setBuild(java.lang.String build)
          Set the Bugs Genie build.
 void setCategory(java.lang.String category)
          Set the Bugs Genie category for this appender
 void setEdition(java.lang.String edition)
          Set the Bugs Genie edition for this appender
 void setProduct(java.lang.String product)
          Set the Bugs Genie product for this appender
 void setStatus(java.lang.String status)
          Set the Bugs Genie status for this appender
 void setUrl(java.lang.String url)
          Url of the direct_bug_post.php file
 
Methods inherited from class net.codesmarts.log4j.AbstractHttpBugReportAppender
getAuthenticationHost, getAuthenticationPassword, getAuthenticationRealm, getAuthenticationUsername, getHttpClient, setAuthenticationHost, setAuthenticationPassword, setAuthenticationRealm, setAuthenticationUsername, setConnectionStaleCheckingEnabled, setMaxConnectionsPerHost, setMaxTotalConnections
 
Methods inherited from class net.codesmarts.log4j.AbstractBugReportAppender
activateOptions, append, close, doAppend, getHashingMethod, getHashMethod, getMaxSize, getThresholdPriority, getThresholdSize, isReportDuplicates, requiresLayout, setHashingMethod, setLayout, setMaxSize, setReportDuplicates, setThresholdPriority, setThresholdSize
 
Methods inherited from class org.apache.log4j.AppenderSkeleton
addFilter, clearFilters, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setName, setThreshold
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

product

protected java.lang.String product

edition

protected java.lang.String edition

build

protected java.lang.String build

category

protected java.lang.String category

application

protected java.lang.String application

status

protected java.lang.String status

assignTo

protected java.lang.String assignTo

bugsUsername

protected java.lang.String bugsUsername

bugsPassword

protected java.lang.String bugsPassword

url

protected java.lang.String url
Constructor Detail

BugsGenieBugReportAppender

public BugsGenieBugReportAppender()
Method Detail

setApplication

public void setApplication(java.lang.String application)
Set the Bugs Genie application for this appender

Parameters:
application - The application to set.

setAssignTo

public void setAssignTo(java.lang.String assignTo)
Set the Bugs Genie user to whom to assign bugs. Defaults to the bugsUsername

Parameters:
assignTo - The assignTo to set.

setBuild

public void setBuild(java.lang.String build)
Set the Bugs Genie build.

Parameters:
build - The build to set.

setUrl

public void setUrl(java.lang.String url)
Url of the direct_bug_post.php file

Parameters:
url - The url to set.

setBugsPassword

public void setBugsPassword(java.lang.String bugsPassword)
Set the Bugs Genie password for this appender

Parameters:
bugsPassword - The bugsPassword to set.

setBugsUsername

public void setBugsUsername(java.lang.String bugsUsername)
Set the Bugs Genie username for this appender

Parameters:
bugsUsername - The bugsUsername to set.

setCategory

public void setCategory(java.lang.String category)
Set the Bugs Genie category for this appender

Parameters:
category - The category to set.

setEdition

public void setEdition(java.lang.String edition)
Set the Bugs Genie edition for this appender

Parameters:
edition - The edition to set.

setProduct

public void setProduct(java.lang.String product)
Set the Bugs Genie product for this appender

Parameters:
product - The product to set.

setStatus

public void setStatus(java.lang.String status)
Set the Bugs Genie status for this appender

Parameters:
status - The status to set.

init

public void init()
initialize appender

Overrides:
init in class AbstractHttpBugReportAppender

append

public void append(BugReport report)
Description copied from class: AbstractBugReportAppender
Append a bug report

Specified by:
append in interface BugReportAppender
Specified by:
append in class AbstractBugReportAppender
See Also:
BugReportAppender.append(net.codesmarts.log4j.BugReport)


Copyright © 2005 CodeSmarts. All Rights Reserved.