apparatus / fuge

The microservice shell
http://fuge.io
MIT License
431 stars 49 forks source link

change log location #181

Open tswaters opened 5 years ago

tswaters commented 5 years ago

Right now logs are all going to {fuge.env directory}/log as per : https://github.com/apparatus/fuge/blob/v2.0.0/util.js#L27-L31

The strange thing is, this path is always used to overwrite what may have been defined in fuge.yml: https://github.com/apparatus/fuge/blob/v2.0.0/util.js#L43

If that assignment is wrapped with an if block checking if it's not already set, everything appears to work properly and you can define a different path for logs.

Is there a reason the log path is hard-coded? It may be useful to allow users the ability to change this location.