logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject cvs commit: logging-log4j/src/java/org/apache/ugli Logger.java NullLogger.java
Date Wed, 17 Nov 2004 13:30:46 GMT
ceki        2004/11/17 05:30:46

  Modified:    src/java/org/apache/ugli Logger.java NullLogger.java
  Log:
  The parameterized printing methods must have String as their first argument instead of Object,
otherwise the java compiler complains
  
  Revision  Changes    Path
  1.2       +8 -8      logging-log4j/src/java/org/apache/ugli/Logger.java
  
  Index: Logger.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/ugli/Logger.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Logger.java	7 Jun 2004 17:25:39 -0000	1.1
  +++ Logger.java	17 Nov 2004 13:30:46 -0000	1.2
  @@ -51,7 +51,7 @@
      * @param parameterizedMsg - the parameterized message object
      * @param param1 - the parameter 
      */
  -  public void debug(Object parameterizedMsg, Object param1);
  +  public void debug(String parameterizedMsg, Object param1);
     
     /**
      * Log a parameterized message object at the DEBUG level. 
  @@ -63,28 +63,28 @@
      * @param param1 - the first parameter 
      * @param param2 - the second parameter 
      */
  -  public void debug(Object parameterizedMsg, Object param1, Object param2);
  +  public void debug(String parameterizedMsg, Object param1, Object param2);
     public void debug(Object msg, Throwable t);
   
   
     public boolean isInfoEnabled();
     public void info(Object msg);
  -  public void info(Object parameterizedMsg, Object param1);
  -  public void info(Object parameterizedMsg, Object param1, Object param2);
  +  public void info(String parameterizedMsg, Object param1);
  +  public void info(String parameterizedMsg, Object param1, Object param2);
     public void info(Object msg, Throwable t);
   
   
     public boolean isWarnEnabled();
     public void warn(Object msg);
  -  public void warn(Object parameterizedMsg, Object param1);
  -  public void warn(Object parameterizedMsg, Object param1, Object param2);
  +  public void warn(String parameterizedMsg, Object param1);
  +  public void warn(String parameterizedMsg, Object param1, Object param2);
     public void warn(Object msg, Throwable t);
   
   
     public boolean isErrorEnabled();
     public void error(Object msg);
  -  public void error(Object parameterizedMsg, Object param1);
  -  public void error(Object parameterizedMsg, Object param1, Object param2);
  +  public void error(String parameterizedMsg, Object param1);
  +  public void error(String parameterizedMsg, Object param1, Object param2);
     public void error(Object msg, Throwable t);
   
   }
  
  
  
  1.2       +8 -8      logging-log4j/src/java/org/apache/ugli/NullLogger.java
  
  Index: NullLogger.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/ugli/NullLogger.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- NullLogger.java	7 Jun 2004 17:25:39 -0000	1.1
  +++ NullLogger.java	17 Nov 2004 13:30:46 -0000	1.2
  @@ -53,14 +53,14 @@
     /* A NOP implementation.
      * @see org.apache.ugli.Logger#debug(java.lang.Object, java.lang.Object)
      */
  -  public void debug(Object parameterizedMsg, Object param1) {
  +  public void debug(String parameterizedMsg, Object param1) {
       // NOP
     }
   
     /* A NOP implementation.
      * @see org.apache.ugli.Logger#debug(java.lang.Object, java.lang.Object, java.lang.Object)
      */
  -  public void debug(Object parameterizedMsg, Object param1, Object param2) {
  +  public void debug(String parameterizedMsg, Object param1, Object param2) {
       // NOP
     }
   
  @@ -89,14 +89,14 @@
     /* A NOP implementation.
      * @see org.apache.ugli.Logger#info(java.lang.Object, java.lang.Object)
      */
  -  public void info(Object parameterizedMsg, Object param1) {
  +  public void info(String parameterizedMsg, Object param1) {
       // NOP
     }
   
     /* A NOP implementation.
      * @see org.apache.ugli.Logger#info(java.lang.Object, java.lang.Object, java.lang.Object)
      */
  -  public void info(Object parameterizedMsg, Object param1, Object param2) {
  +  public void info(String parameterizedMsg, Object param1, Object param2) {
       // NOP
     }
   
  @@ -124,14 +124,14 @@
     /* A NOP implementation.
      * @see org.apache.ugli.Logger#warn(java.lang.Object, java.lang.Object)
      */
  -  public void warn(Object parameterizedMsg, Object param1) {
  +  public void warn(String parameterizedMsg, Object param1) {
       // NOP
     }
   
     /* A NOP implementation.
      * @see org.apache.ugli.Logger#warn(java.lang.Object, java.lang.Object, java.lang.Object)
      */
  -  public void warn(Object parameterizedMsg, Object param1, Object param2) {
  +  public void warn(String parameterizedMsg, Object param1, Object param2) {
       // NOP
     }
   
  @@ -159,14 +159,14 @@
     /* A NOP implementation.
      * @see org.apache.ugli.Logger#error(java.lang.Object, java.lang.Object)
      */
  -  public void error(Object parameterizedMsg, Object param1) {
  +  public void error(String parameterizedMsg, Object param1) {
       // NOP
     }
   
     /* A NOP implementation.
      * @see org.apache.ugli.Logger#error(java.lang.Object, java.lang.Object, java.lang.Object)
      */
  -  public void error(Object parameterizedMsg, Object param1, Object param2) {
  +  public void error(String parameterizedMsg, Object param1, Object param2) {
       // NOP
     }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message