[GH-ISSUE #60] Any way to disable logs from terminal? #25

Closed
opened 2026-02-26 04:33:48 +03:00 by kerem · 8 comments
Owner

Originally created by @devfelipereis on GitHub (Feb 27, 2018).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/60

Originally assigned to: @mageddo on GitHub.

First, thanks for all!

I'm using this image in my docker-compose file and when not running in detach mode, I see a lot of logs in the screen.

Is there any way to disable logs?

EDIT

I'm running in detach mode and using docker logs command to inspect my containers. A good solution for now.

Originally created by @devfelipereis on GitHub (Feb 27, 2018). Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/60 Originally assigned to: @mageddo on GitHub. First, thanks for all! I'm using this image in my docker-compose file and when not running in detach mode, I see a lot of logs in the screen. Is there any way to disable logs? **EDIT** I'm running in detach mode and using **docker logs** command to inspect my containers. A good solution for now.
kerem 2026-02-26 04:33:48 +03:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@mageddo commented on GitHub (Feb 27, 2018):

Thank you for appreciate DPS, currently there is no way to disable logs, anyway I'm working to bring this feature soon at version 2.4.0, Bellow the description:

  • Redirect logs from console to file
  • Disable logs entirely
  • Set log level

All this options will be configurable by JSON configuration, terminal arguments and system environment variable.

<!-- gh-comment-id:368873709 --> @mageddo commented on GitHub (Feb 27, 2018): Thank you for appreciate DPS, currently there is no way to disable logs, anyway I'm working to bring this feature soon at version `2.4.0`, Bellow the description: * Redirect logs from console to file * Disable logs entirely * Set log level All this options will be configurable by JSON configuration, terminal arguments and system environment variable.
Author
Owner

@spravo commented on GitHub (Feb 27, 2018):

hey @devfelipereis.

If you want simple to disable log you should add the logging driver with the mode none.

example docker.compose.yml

  nginx:
    image: nginx
    environment:
      - HOSTNAMES=test.com
    ports:
      - 80:80
  proxy:
   image: defreitas/dns-proxy-server
   logging:
      driver: none
    ports:
      - 5380:5380
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /etc/resolv.conf:/etc/resolv.conf
    hostname: dns.mageddo
<!-- gh-comment-id:369018621 --> @spravo commented on GitHub (Feb 27, 2018): hey @devfelipereis. If you want simple to disable log you should add the **logging driver** with the mode **none**. example *docker.compose.yml* ```yml nginx: image: nginx environment: - HOSTNAMES=test.com ports: - 80:80 proxy: image: defreitas/dns-proxy-server logging: driver: none ports: - 5380:5380 volumes: - /var/run/docker.sock:/var/run/docker.sock - /etc/resolv.conf:/etc/resolv.conf hostname: dns.mageddo ```
Author
Owner

@devfelipereis commented on GitHub (Feb 28, 2018):

@spravo So simple omg... Thank you so much!

<!-- gh-comment-id:369101808 --> @devfelipereis commented on GitHub (Feb 28, 2018): @spravo So simple omg... Thank you so much!
Author
Owner

@mageddo commented on GitHub (Mar 1, 2018):

Looks like the problem is solved for you, anyway I pre releleased a new version, you can check the documentation here. I might be useful for future users.

EDIT

If you test it and find some issue please let me know.

<!-- gh-comment-id:369485793 --> @mageddo commented on GitHub (Mar 1, 2018): Looks like the problem is solved for you, anyway I pre releleased a [new version](https://github.com/mageddo/dns-proxy-server/releases/download/2.4.0/dns-proxy-server-2.4.0.tgz), you can check the [documentation here](https://github.com/mageddo/dns-proxy-server/blob/master/docs/Features.md). I might be useful for future users. **EDIT** If you test it and find some issue please let me know.
Author
Owner

@mageddo commented on GitHub (Mar 1, 2018):

Thank you guys

<!-- gh-comment-id:369485820 --> @mageddo commented on GitHub (Mar 1, 2018): Thank you guys
Author
Owner

@rrrealman commented on GitHub (May 31, 2018):

Hi, great thank for your service. I found that your log level option docs is invalid in latest versions. Currently I use 2.4.1 version docker image from https://hub.docker.com/r/defreitas/dns-proxy-server/tags/.

<!-- gh-comment-id:393500384 --> @rrrealman commented on GitHub (May 31, 2018): Hi, great thank for your service. I found that your log level option docs is invalid in latest versions. Currently I use 2.4.1 version docker image from `https://hub.docker.com/r/defreitas/dns-proxy-server/tags/`.
Author
Owner

@mageddo commented on GitHub (May 31, 2018):

@rrrealman I'm sorry I broke it when developed #48 anyway I fixed at 2.5.2

<!-- gh-comment-id:393582164 --> @mageddo commented on GitHub (May 31, 2018): @rrrealman I'm sorry I broke it when developed #48 anyway I fixed at 2.5.2
Author
Owner

@rrrealman commented on GitHub (Jun 9, 2018):

Never mind. Thank you for patch.

<!-- gh-comment-id:395953719 --> @rrrealman commented on GitHub (Jun 9, 2018): Never mind. Thank you for patch.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dns-proxy-server-mageddo#25
No description provided.