private static void addFilter_p(String className,String label,int type) {
		LogFilter filter= new LogFilter();
		filter.className=className;
		// get the name of caller class
		try {
			throw new Exception("");
		}
		catch( Exception e ) {
			StackTraceElement tr = e.getStackTrace()[2];
			if(className==null || className.equals(LogFilter.callerClassName)) {
				String codeClassName=tr.getClassName(); 
				filter.className=shortClassName(codeClassName);
			}
			else {
				filter.className=className;
			}
			
			if(label==null || label.equals(LogFilter.labelCallerMethodName))
				filter.label=tr.getMethodName();
			else
				filter.label=label;
		}
		filter.type=type;
		
		// don't duplicate a filter
		boolean exist=false;
		for(LogFilter a_filter:labelFilters) {
			if(a_filter.equals(filter))
				exist=true;
		}
		if(!exist)
			labelFilters.add(filter);
	}