You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
As of version 2.1.2.641 there is no way to tell appart test and production runs in the log.
Test run:
2020-01-07 10:51:13.110 -03:00 [INF] Software version 2.1.2.641 (RELEASE, UNPLUGGABLE) started
2020-01-07 10:52:58.580 -03:00 [INF] Renewing certificate for [Manual] www.example.com
2020-01-07 10:53:39.221 -03:00 [INF] Next renewal scheduled at 2020-03-02 10:53:39
2020-01-07 10:53:39.236 -03:00 [INF] Renewal for [Manual] www.example.com succeeded
Production run:
2020-01-07 11:15:20.829 -03:00 [INF] Software version 2.1.2.641 (RELEASE, UNPLUGGABLE) started
2020-01-07 11:15:21.345 -03:00 [INF] Renewing certificate for [Manual] www.example.com
2020-01-07 11:16:03.704 -03:00 [INF] Next renewal scheduled at 2020-03-02 11:16:03
2020-01-07 11:16:03.736 -03:00 [INF] Renewal for [Manual] www.example.com succeeded
You can do a) a test run and a production run or b) just two test runs and both will log the same. If I look at the log and see Renewal for XXXXX succeeded I might assume that everything is fine without realizing that it only applies to the test environment.
Describe the solution you'd like
Log to different files ie. log-{date}.txt for prod and log-{date}-test.txt for testing (--test).
Describe alternatives you've considered
Any of:
Add an additional log line like:
2020-01-07 10:51:13.110 -03:00 [INF] Software version 2.1.2.641 (RELEASE, UNPLUGGABLE) started
2020-01-07 10:51:13.200 -03:00 [INF] Running in TEST mode
2020-01-07 10:52:58.580 -03:00 [INF] Renewing certificate for [Manual] www.example.com
Add a preffix to log lines for testing:
2020-01-07 10:51:13.110 -03:00 [INF] [TEST] Software version 2.1.2.641 (RELEASE, UNPLUGGABLE) started
2020-01-07 10:52:58.580 -03:00 [INF] [TEST] Renewing certificate for [Manual] www.example.com
Additional context
Also I don't know if win-acme supports running multiple instances concurrently but please log the process ID, just in case:
2020-01-07 10:51:13.110 -03:00 [PID-1234] [INF] Software version 2.1.2.641 (RELEASE, UNPLUGGABLE) started
2020-01-07 10:52:58.580 -03:00 [PID-1234] [INF] Renewing certificate for [Manual] www.example.com
The text was updated successfully, but these errors were encountered:
I don't like the idea of doing anything special for --test, but I will make three small changes for the next release:
When using a custom logging folder, sub folders will be created for each ACME endpoint that you use. Note that this is different from seperating --test and regular runs, because you can do a --test run on a production ACME endpoint and likewise a regular run on an ACME staging endpoint.
At startup, the command line provided will be logged to disk.
The Process ID will be available as context for custom logging, and an example on how to set that up will be added to the documentation. Running multiple instances of the program with the same ACME endpoint is not supported, but currently nothing would stop you from doing that.
When using a custom logging folder, sub folders will be created for each ACME endpoint that you use. Note that this is different from seperating --test and regular runs, because you can do a --test run on a production ACME endpoint and likewise a regular run on an ACME staging endpoint.
That it is way better. I wasn't thinking in terms of endpoints.
Is your feature request related to a problem? Please describe.
As of version 2.1.2.641 there is no way to tell appart test and production runs in the log.
Test run:
Production run:
You can do a) a test run and a production run or b) just two test runs and both will log the same. If I look at the log and see
Renewal for XXXXX succeeded
I might assume that everything is fine without realizing that it only applies to the test environment.Describe the solution you'd like
Log to different files ie.
log-{date}.txt
for prod andlog-{date}-test.txt
for testing (--test).Describe alternatives you've considered
Any of:
Additional context
Also I don't know if win-acme supports running multiple instances concurrently but please log the process ID, just in case:
The text was updated successfully, but these errors were encountered: