NLPbox / stanford-corenlp-docker

build/run the most current Stanford CoreNLP server in a docker container
43 stars 32 forks source link

How do I change logging of server #5

Closed githubuser100007 closed 2 years ago

githubuser100007 commented 2 years ago

Want to run server in docker, but also want to control logging / log files. How would I do this?

arne-cl commented 2 years ago

First, you need to find out where CoreNLP stores its logs.

If CoreNLP would put them in /some/path/filename.log in the container, then you could mount a local folder (e.g. /tmp/corenlp-logs into the container folder /some/path) like this:

docker run -v /tmp/corenlp-logs:/some/path -p 9000:9000 nlpbox/corenlp

This way, you can run CoreNLP in Docker, but view the logs on your host system.

Another option would be to: