Tomcat Pivotal不显示来自STDERR的日志

Tomcat Pivotal不显示来自STDERR的日志,tomcat,tomcat7,cloud-foundry,Tomcat,Tomcat7,Cloud Foundry,我在Pivotal上使用标准buildpack,在使用“cf logs app_name”时,没有任何来自STDERR的日志,例如,没有异常堆栈跟踪。 我看过Loggregator,应该没问题。 我还确保我的CF_TRACE env变量设置为true,JBP_LOG_LEVEL和LOG_LEVEL也设置为DEBUG 我已经使用简单的Tomcat servlet在Pivotal上设置了tester应用程序: import java.io.IOException; import javax.serv

我在Pivotal上使用标准buildpack,在使用“cf logs app_name”时,没有任何来自STDERR的日志,例如,没有异常堆栈跟踪。 我看过Loggregator,应该没问题。 我还确保我的CF_TRACE env变量设置为true,JBP_LOG_LEVEL和LOG_LEVEL也设置为DEBUG

我已经使用简单的Tomcat servlet在Pivotal上设置了tester应用程序:

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet(value="/errTest", name="err-test")
public class ErrTestServlet extends HttpServlet {
  private static final long serialVersionUID = 1L;
  public void doGet(HttpServletRequest request, HttpServletResponse response) 
     throws ServletException, IOException {
    System.out.println("System.out TEST");
    System.err.println("System.err TEST 1");
    System.err.flush();
    System.err.println("System.err TEST 2");
  }
}
使用以下pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>errTesting</groupId>
  <artifactId>errTesting</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>war</packaging>
  <build>
    <sourceDirectory>src</sourceDirectory>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.1</version>
        <configuration>
          <source>1.7</source>
          <target>1.7</target>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.4</version>
        <configuration>
          <warSourceDirectory>WebContent</warSourceDirectory>
          <failOnMissingWebXml>false</failOnMissingWebXml>
        </configuration>
      </plugin>
    </plugins>
  </build>
    <dependencies>
    <dependency>
          <groupId>javax.servlet</groupId>
          <artifactId>javax.servlet-api</artifactId>
          <version>3.0.1</version>
          <scope>provided</scope>
    </dependency>
    </dependencies>
</project>
在关键cf日志上有以下输出:

2014-10-08T12:55:28.63+0200[App/0]输出系统输出测试

在本地主机上时:

System.err测试1 System.out测试 系统错误测试2


是否有我可能遗漏的任何配置选项?

任何发送到STDERR并在必要时刷新的内容都将以红色显示在cf logs loggregator中。任何发送到STDOUT并在必要时冲洗的东西都将显示为无色


如果他们没有出现,也许可以尝试一些明确的冲洗?System.err.flush可能?

它不起作用,问题可能出在Tomcat配置中,尽管我已尝试在构建包中将默认的\u log\u level logging.yml从INFO更改为DEBUG,但它也不起作用。