/*
 * Cuelib library for manipulating cue sheets.
 * Copyright (C) 2007-2008 Jan-Willem van den Broek
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */
package jwbroek.cuelib;

import java.util.logging.Logger;

/**
 * Simple error for use by a cue sheet.
 * @author jwbroek
 */
public class Error extends MessageImplementation
{
  /**
   * The logger for this class.
   */
  private final static Logger logger = Logger.getLogger(Error.class.getCanonicalName());
  
  /**
   * Create a new Error message.
   * @param input The input that caused the error.
   * @param lineNumber The line number of the input that caused the error.
   * @param message A message explaining what is wrong.
   */
  public Error(final String input, final int lineNumber, final String message)
  {
    super("Error", input, lineNumber, message);
    Error.logger.entering(Error.class.getCanonicalName(), "Error()");
    Error.logger.exiting(Error.class.getCanonicalName(), "Error()");
  }

  /**
   * Create a new Error message.
   * @param lineOfInput The input that caused the error.
   * @param message A message explaining what is wrong.
   */
  public Error(final LineOfInput lineOfInput, final String message)
  {
    super("Error", lineOfInput, message);
    Error.logger.entering(Error.class.getCanonicalName(), "Error()");
    Error.logger.exiting(Error.class.getCanonicalName(), "Error()");
  }
}

@@ -881,32 +881,56 @@
 ort 
-java.util.logging.Logger
+org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory
 ;%0A%0A/
@@ -972,16 +972,19 @@
  sheet.%0A
+ *%0A
  * @auth
@@ -1050,11 +1050,14 @@
 tion
+ %7B
 %0A
-%7B
 %0A
+  
   /*
@@ -1061,16 +1061,18 @@
  /**%0A   
+ 
+ 
 * The lo
@@ -1095,19 +1095,23 @@
 ass.%0A   
+  
 */%0A
+  
   privat
@@ -1147,16 +1147,23 @@
 = Logger
+Factory
 .getLogg
@@ -1180,39 +1180,22 @@
 lass
-.getCanonicalName()
 );%0A
+%0A
   
-%0A
   /**%0A
+  
    *
@@ -1215,32 +1215,41 @@
  Error message.%0A
+     *%0A  
    * @param inpu
@@ -1246,24 +1246,29 @@
 param input 
+     
 The input th
@@ -1280,32 +1280,34 @@
 used the error.%0A
+  
    * @param line
@@ -1357,32 +1357,34 @@
 used the error.%0A
+  
    * @param mess
@@ -1379,32 +1379,35 @@
  @param message 
+   
 A message explai
@@ -1421,35 +1421,39 @@
 at is wrong.%0A   
+  
 */%0A
+  
   public Error(f
@@ -1506,37 +1506,39 @@
  String message)
-%0A 
  %7B%0A
+    
     super(%22Error
@@ -1577,154 +1577,21 @@
     
-Error.logger.entering(Error.class.getCanonicalName(), %22Error()%22);%0A    Error.logger.exiting(Error.class.getCanonicalName(), %22Error()%22);%0A  
 %7D%0A%0A
+  
   /**%0A
+  
    *
@@ -1619,16 +1619,25 @@
 essage.%0A
+     *%0A  
    * @pa
@@ -1688,16 +1688,18 @@
 ror.%0A   
+  
 * @param
@@ -1707,16 +1707,20 @@
 message 
+    
 A messag
@@ -1750,19 +1750,23 @@
 ong.%0A   
+  
 */%0A
+  
   public
@@ -1828,13 +1828,15 @@
 age)
+ %7B
 %0A  
-%7B%0A
+  
     
@@ -1879,145 +1879,8 @@
 ;%0A  
-  Error.logger.entering(Error.class.getCanonicalName(), %22Error()%22);%0A    Error.logger.exiting(Error.class.getCanonicalName(), %22Error()%22);%0A
   %7D%0A

Reformat & migrate logging