package gov.nih.nci.evs.searchlog;

import org.apache.log4j.Level;

public class SearchLevel extends Level {

	private static final long serialVersionUID = 1L;
	
	// High enough so only SL events get logged in the file
	public static final int SEARCH_LOG_INT = FATAL_INT + 1000; 
	public static final SearchLevel SEARCH_LOG_LEVEL = new SearchLevel(SEARCH_LOG_INT,"SEARCH",7);
	
	protected SearchLevel(int level, String levelStr, int syslogEquivalent) {
		super(level, levelStr, syslogEquivalent);
	}

    public static SearchLevel toLevel(String sArg) {
    	return SEARCH_LOG_LEVEL;
    }
	
    public static SearchLevel toLevel(int val) {
    	return SEARCH_LOG_LEVEL;
    }    

    public static Level toLevel(int val, Level defaultLevel) {
    	return SEARCH_LOG_LEVEL;
    }   
    
}

@@ -109,17 +109,18 @@
 el %7B%0D%0A%0D%0A
-%09
+  
 private 
@@ -161,20 +161,20 @@
  = 1L;%0D%0A
-%09
 %0D%0A
-%09
+  
 // High 
@@ -222,17 +222,18 @@
 e file%0D%0A
-%09
+  
 public s
@@ -286,12 +286,12 @@
 000;
- 
 %0D%0A
-%09
+  
 publ
@@ -368,16 +368,17 @@
 LOG_INT,
+ 
 %22SEARCH%22
@@ -382,17 +382,18 @@
 CH%22,
+ 
 7);%0D%0A
-%09
 %0D%0A
-%09
+  
 prot
@@ -467,10 +467,12 @@
  %7B%0D%0A
-%09%09
+    
 supe
@@ -514,16 +514,15 @@
 );%0D%0A
-%09
+  
 %7D%0D%0A%0D%0A
-  
   pu
@@ -565,33 +565,32 @@
 ng sArg) %7B%0D%0A    
-%09
 return SEARCH_LO
@@ -603,20 +603,15 @@
 L;%0D%0A
-  
   %7D%0D%0A
-%09
 %0D%0A
-  
   pu
@@ -650,33 +650,32 @@
 int val) %7B%0D%0A    
-%09
 return SEARCH_LO
@@ -690,21 +690,13 @@
 %0D%0A  
-  %7D    
+%7D
 %0D%0A%0D%0A
-  
   pu
@@ -761,9 +761,8 @@
     
-%09
 retu
@@ -789,20 +789,11 @@
 %0D%0A  
-  %7D   %0D%0A    
+%7D%0D%0A
 %0D%0A%7D%0D

Reformatted this page for readability.