所以我实现了这个简单的计数器。
02:23:18,324 INFO Characteristic: 46d21ef0{8a5b1c7c@293{b0d929ae@276{b0d929ae@182{de8e612a@241
02:23:18,324 ERROR Error rendering: /programovani/artificial_intelligence/covering_ai_theory.texy: java.lang.UnsupportedOperationException: Definition lists not supported yet.
at cz.dynawest.jtexy.modules.ListModule$DefListPatternHandler.handle(ListModule.java:293)
...
02:23:19,956 INFO Characteristic: 46d21ef0{8a5b1c7c@293{b0d929ae@276{b0d929ae@182{de8e612a@241
02:23:19,957 ERROR Recurring rendeding error: /programovani/artificial_intelligence/covering_ai_theory.texy
用法:
catch( Exception ex ){
int count = repeatedExDetector.countException( ex );
if( count < 2 )
log.error("Error rendering: " + path, ex);
else
log.error("Recurring rendering error: " + path);
add( new TexyDocumentErrorPanel("document", "Error occured when loading document.", "Couldn't load: " + path, 500));
}
执行:
在我的博客上。