[FEATURE REQUEST] Log Level Environment Variable #20

Closed
opened 2025-11-19 07:12:02 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @boomam on GitHub (May 5, 2025).

Hi,
The ability to lower the log level of the containers sdtout, and/or the frequency of ping checks would be useful to implement.

Thanks.

Originally created by @boomam on GitHub (May 5, 2025). Hi, The ability to lower the log level of the containers sdtout, and/or the frequency of ping checks would be useful to implement. Thanks.
Author
Owner

@oschwartz10612 commented on GitHub (May 5, 2025):

This needs to be documented better but you can actually use --log-level or LOG_LEVEL.

$ ./newt --help
Usage of ./newt:
  -accept-clients
        Accept clients on the WireGuard interface
  -dns string
        DNS server to use (default "8.8.8.8")
  -endpoint string
        Endpoint of your pangolin server
  -generateAndSaveKeyTo string
        Path to save generated private key (default "/tmp/newtkey")
  -id string
        Newt ID
  -interface string
        Name of the WireGuard interface (default "wg1")
  -log-level string
        Log level (DEBUG, INFO, WARN, ERROR, FATAL) (default "INFO")
  -mtu string
        MTU to use (default "1280")
  -rm
        Remove the WireGuard interface
  -secret string
        Newt secret
  -updown string
        Path to updown script to be called when targets are added or removed
  -version
        Print the version

I am going to close this for now but feel free to reopen if this does not meet your needs.

@oschwartz10612 commented on GitHub (May 5, 2025): This needs to be documented better but you can actually use `--log-level` or `LOG_LEVEL`. ``` $ ./newt --help Usage of ./newt: -accept-clients Accept clients on the WireGuard interface -dns string DNS server to use (default "8.8.8.8") -endpoint string Endpoint of your pangolin server -generateAndSaveKeyTo string Path to save generated private key (default "/tmp/newtkey") -id string Newt ID -interface string Name of the WireGuard interface (default "wg1") -log-level string Log level (DEBUG, INFO, WARN, ERROR, FATAL) (default "INFO") -mtu string MTU to use (default "1280") -rm Remove the WireGuard interface -secret string Newt secret -updown string Path to updown script to be called when targets are added or removed -version Print the version ``` I am going to close this for now but feel free to reopen if this does not meet your needs.
Author
Owner

@boomam commented on GitHub (May 5, 2025):

Thanks - i redeployed my helm chart with LOG_LEVEL added and it appears to be a lot quieter in the logs now.

Are the other variables you mention compatible with using them as environment variables, too?
For example -
MTU = 1500
DNS = 8.8.8.8
GENERATE_AND_SAVE_KEY = /temp/newtkey
etc...

?

@boomam commented on GitHub (May 5, 2025): Thanks - i redeployed my helm chart with LOG_LEVEL added and it appears to be a lot quieter in the logs now. Are the other variables you mention compatible with using them as environment variables, too? For example - MTU = 1500 DNS = 8.8.8.8 GENERATE_AND_SAVE_KEY = /temp/newtkey etc... ?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/newt#20