zack
6 years ago
3 changed files with 41 additions and 1 deletions
@ -0,0 +1,16 @@
|
||||
package com.fr.design.fun; |
||||
|
||||
import com.fr.stable.fun.mark.Immutable; |
||||
import com.fr.third.apache.log4j.spi.LoggingEvent; |
||||
|
||||
public interface DesignerLoggingProcessor extends Immutable { |
||||
int CURRENT_LEVEL = 1; |
||||
|
||||
String XML_TAG = "DesignerLoggingProcessor"; |
||||
|
||||
/** |
||||
* 输出日志对象 |
||||
* @param loggingEvent 日志对象 |
||||
*/ |
||||
void printLoggingEvent(LoggingEvent loggingEvent); |
||||
} |
@ -0,0 +1,17 @@
|
||||
package com.fr.design.fun.impl; |
||||
|
||||
import com.fr.design.fun.DesignerLoggingProcessor; |
||||
import com.fr.stable.fun.mark.API; |
||||
|
||||
@API(level = DesignerLoggingProcessor.CURRENT_LEVEL) |
||||
public abstract class AbstractDesignerLoggingProcessor implements DesignerLoggingProcessor { |
||||
@Override |
||||
public int currentAPILevel() { |
||||
return CURRENT_LEVEL; |
||||
} |
||||
|
||||
@Override |
||||
public int layerIndex() { |
||||
return DEFAULT_LAYER_INDEX; |
||||
} |
||||
} |
Loading…
Reference in new issue