Giter Club home page Giter Club logo

Comments (7)

sridhar-newsdistill avatar sridhar-newsdistill commented on May 21, 2024 1

docker log container just shows catalina.{yyyy-mm-dd} localhost.{yyyy-mm-dd} but not catalina.out

from tomcat.

yosifkit avatar yosifkit commented on May 21, 2024

Do they get logged to stdout or stderr? If so, they should be in docker logs container-name.

from tomcat.

icirellik avatar icirellik commented on May 21, 2024

I have noticed a similar issue. It appears that the log gets rotated out after a few days and no more output is appended to stdout, I'm not sure what's causing it though it is reproducible on any of our tomcat docker images.

from tomcat.

sridhar-newsdistill avatar sridhar-newsdistill commented on May 21, 2024

im also facing the same issue

from tomcat.

icirellik avatar icirellik commented on May 21, 2024

I've managed to fix our logging issues by adding the following catalina-logging.properties file to the /usr/local/tomcat/conf/. I am not a Tomcat guru, so it's likely this can be simplified. Possibly to just:

java.util.logging.ConsoleHandler.rotatable = false

from tomcat.

petrdvorak avatar petrdvorak commented on May 21, 2024

Same issue here... :-/ I didn't get what is wrong, since the logging configuration seems to be the same as on my machine.

The important change in @icirellik example is moving from AsyncFileHandler to FileHandler. This seems to write every log record synchronously. However, I am slightly cautious about this change, sync synchronous logging may cause unnecessary performance hit...

from tomcat.

tianon avatar tianon commented on May 21, 2024

Given that this appears to be a Tomcat configuration issue (not an issue with the image itself that we could fix), I'm going to close. In the future, these sorts of questions/requests would be more appropriately posted to the Docker Community Forums, the Docker Community Slack, or Stack Overflow. Thanks!

from tomcat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.