avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: avalon-logkit/src/java/org/apache/log/format SyslogFormatter.java
Date Mon, 07 Apr 2003 11:38:40 GMT
donaldp     2003/04/07 04:38:40

  Modified:    src/java/org/apache/log/format SyslogFormatter.java
  Log:
  Add brackets.
  
  Revision  Changes    Path
  1.11      +10 -0     avalon-logkit/src/java/org/apache/log/format/SyslogFormatter.java
  
  Index: SyslogFormatter.java
  ===================================================================
  RCS file: /home/cvs/avalon-logkit/src/java/org/apache/log/format/SyslogFormatter.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- SyslogFormatter.java	9 Feb 2003 23:33:22 -0000	1.10
  +++ SyslogFormatter.java	7 Apr 2003 11:38:40 -0000	1.11
  @@ -205,14 +205,24 @@
       protected int getSyslogPriority( final LogEvent event )
       {
           if( event.getPriority().isLowerOrEqual( Priority.DEBUG ) )
  +        {
               return PRIORITY_DEBUG;
  +        }
           else if( event.getPriority().isLowerOrEqual( Priority.INFO ) )
  +        {
               return PRIORITY_INFO;
  +        }
           else if( event.getPriority().isLowerOrEqual( Priority.WARN ) )
  +        {
               return PRIORITY_WARNING;
  +        }
           else if( event.getPriority().isLowerOrEqual( Priority.ERROR ) )
  +        {
               return PRIORITY_ERR;
  +        }
           else
  +        {
               return PRIORITY_CRIT;
  +        }
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message