fabiolb / fabio

Consul Load-Balancing made simple
https://fabiolb.net
MIT License
7.25k stars 620 forks source link

windows: setting logging path in fabio properties #920

Closed lcividinwork closed 1 year ago

lcividinwork commented 1 year ago

Hi There am I able to set log to a logging path (for example d:\fabio_logs\fabio.log). We have some windows nomad hosts that are running fabio as a windows service.

Reading the fabio.properties, it only offers stdout which is screen in windows (unless I'm mistaken, often am) and not that helpful.

nathanejohnson commented 1 year ago

It is possible to redirect standard output to a file on Windows, just as it is on *nix. Does this get you what you need? But you are correct, the only logging output currently supported is stdout.

lcividinwork commented 1 year ago

yep that'll have to do, thanks for the quick response!

nathanejohnson commented 1 year ago

@lcividinwork you're welcome! And, as always, PR's welcome!