roadmap icon indicating copy to clipboard operation
roadmap copied to clipboard

Logs: an option to only show new logs

Open cootshk opened this issue 9 months ago • 0 comments

Tell us about your request A clear and concise description of what you want to happen or the change you would like to see

Add a --new option to the docker logs -f and docker compose logs -f commands to only show new logs after the command has been run. Basically just alias --new to --since=0s.

Which service(s) is this request for? Let us know which product(s) you want this for?

  • docker logs
  • docker compose logs
  • And basically anything else that gets container logs

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I have a container that I periodically get logs from, but I never restart the container. And just running docker compose logs my-container will flood my terminal and take a long time to reach new log entries.

Are you currently working around the issue? A clear and concise description of any alternative solutions or features you've considered or are using today.

docker compose logs my-container -f --since=0s to get all logs since 0s from now.

Additional context Add any other context or screenshots about the feature request here.

cootshk avatar May 20 '25 02:05 cootshk