English 中文(简体)
春天在玻璃鱼下进行伐木吗?
原标题:Logging in spring 3.0 under glassfish?

我试图弄清为什么普春斯·安诺特德·桑德勒·阿达普特没有援引我的控制人员之一的某些操作人员。 在Netbeans,我没有发现任何错误,在浏览器上只有404个。 我试图在我的一位工作控制员/手里打一个断点,然后步行链条,在调度员中打一个断点。

Netbeans shows me some funny method bodies:

protected ModelAndView invokeHandlerMethod(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception
{
  //compiled code
  throw new RuntimeException("Compiled Code");
}

我怀疑的是阿普协议的魔.。 Undeterred,我试图混淆标志4j,以追踪这些电话,并显示任何从org. mersframework.web.servlet.mvc.annotation书包贴在“资料:”级电文上的信息。 在网上添加背景语和听众是失败的,因为集装箱可以找到原木4j级,即使他们在那里,尽管我可以再次加入该项目。

因此,问题是——在春季3.0下,我需要做些什么来获得方法追踪(可以通过AOP进行追踪)和加强脱胎(这肯定需要记录4j)?

最佳回答

如果I m不误3.X使用SLF4J进行伐木。 通常,你需要增加SLF4J,对你选择的伐木框架具有约束力,例如,对于标志4, lf4j-log4j12 jar,应当出现在班次和原木4j.jar,而且这些版本更合适——我发现SLF4J是这样。 See more details here。 也没有忘记标志4j.xml config。

问题回答

暂无回答




相关问题
Netbeans CVS - existing repo - existing working copy

I m using Netbeans to develop with Drupal. I m trying to let Netbeans get drupal core and modules from the repository on drupal.org to my local working copy. Problem is: I already have a working ...

Java Library and Class Path Problems

Quick personal background: I was hired a few months ago as the sole .NET developer (C#) by a company whose other devs are all php devs. A week into the job I was told they wanted to switch to Java ...

Privileged operations in netbeans mobility

I m writing a Java ME app that will use privileged operations such as messaging. By default the user is prompted to confirm each of these operations, but I would like to run it as a background ...

Running unit tests on both windows and linux

Is there a way, a method, to be able to effectively run unit tests (phpunit) on both linux and windows? I need to do this because some parts of the system is only available under linux, but i do want ...

Dependency bundle (jar-files/sources/API docs) in Eclipse

I m developing various in-house extensions for JIRA, the issue tracker we use. So far I worked with Netbeans and everything worked like a charm. However, now I need to switch to Eclipse and I m ...

热门标签