stephenh / mirror

A tool for real-time, two-way sync for remote (e.g. desktop/laptop) development
Apache License 2.0
391 stars 37 forks source link

Specify log file path? #65

Closed barrychapman closed 3 years ago

barrychapman commented 3 years ago

Is it possible to specify a log file path? like have it write to /var/log/mirror instead of my web directory where it could be accessed?

stephenh commented 3 years ago

Hi @barrychapman , no that's not currently configurable right now. It's hard-coded here:

https://github.com/stephenh/mirror/blob/9e72dff857d389d6853b535fd85b1122a73c9be6/src/main/java/mirror/LoggingConfig.java#L84

The simplest thing would be to just fork mirror and add your own preferred hard-coded path :-)

But a PR to add a command line flag would be great too.

barrychapman commented 3 years ago

Hi @barrychapman , no that's not currently configurable right now. It's hard-coded here:

https://github.com/stephenh/mirror/blob/9e72dff857d389d6853b535fd85b1122a73c9be6/src/main/java/mirror/LoggingConfig.java#L84

The simplest thing would be to just fork mirror and add your own preferred hard-coded path :-)

But a PR to add a command line flag would be great too.

Pull request submitted!

66

stephenh commented 3 years ago

Included in the latest release.