jeremias    2003/03/27 03:23:06

  Modified:    src/java/org/apache/fop/svg SVGUserAgent.java
  Log:
  Logging via Avalon Logger.
  
  Revision  Changes    Path
  1.2       +12 -6     xml-fop/src/java/org/apache/fop/svg/SVGUserAgent.java
  
  Index: SVGUserAgent.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/svg/SVGUserAgent.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SVGUserAgent.java 11 Mar 2003 13:05:07 -0000      1.1
  +++ SVGUserAgent.java 27 Mar 2003 11:23:06 -0000      1.2
  @@ -68,7 +68,6 @@
    */
   public class SVGUserAgent extends UserAgentAdapter {
       private AffineTransform currentTransform = null;
  -    private Logger log;
       private FOUserAgent userAgent;
   
       /**
  @@ -79,7 +78,14 @@
       public SVGUserAgent(FOUserAgent ua, AffineTransform at) {
           currentTransform = at;
           userAgent = ua;
  -        log = userAgent.getLogger();
  +    }
  +
  +    /**
  +     * Returns the logger associated with this user agent.
  +     * @return Logger the logger
  +     */
  +    protected final Logger getLogger() {
  +        return this.userAgent.getLogger();
       }
   
       /**
  @@ -87,7 +93,7 @@
        * @param message the message to display
        */
       public void displayError(String message) {
  -        log.error(message);
  +        getLogger().error(message);
       }
   
       /**
  @@ -95,7 +101,7 @@
        * @param ex the exception to display
        */
       public void displayError(Exception ex) {
  -        log.error("SVG Error" + ex.getMessage(), ex);
  +        getLogger().error("SVG Error" + ex.getMessage(), ex);
       }
   
       /**
  @@ -104,7 +110,7 @@
        * @param message the message to display
        */
       public void displayMessage(String message) {
  -        log.info(message);
  +        getLogger().info(message);
       }
   
       /**
  @@ -112,7 +118,7 @@
        * @param message the message to display
        */
       public void showAlert(String message) {
  -        log.warn(message);
  +        getLogger().warn(message);
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to