Created by: ybelenko
I've added pre-configured Monolog logger. Big projects might need logger factory to use different logger instances in each micro service, but current implementation should cover MVP.
This code enables logger with production mode only, it's based on my personal job experience because I don't read log files during development. From my point of view enabled logger at the dev server just pollutes system with temp files which I won't read anyway, in rare cases when I do need logs(CRON task) I turn them on manually.
@wing328 if you know how to change folder permissions from the Java code let me know. It would be great to make logs
folder writable(like from command line sudo chmod a+w logs
)
cc @jebentier @dkarlovi @mandrean @jfastnacht @renepardon
PR checklist
-
Read the contribution guidelines. -
Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community. -
Run the following to build the project and update samples: ./mvnw clean package ./bin/generate-samples.sh ./bin/utils/export_docs_generators.sh
./bin/generate-samples.sh bin/configs/java*
. For Windows users, please run the script in Git BASH. -
If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.