Erikvl87/docker-languagetool

Question: How to set the loglevel?

thomas-mc-work opened this issue ยท 4 comments

Hello,

currently the log level is set to INFO. How can I set it to another level?

Thanks!

Hi @thomas-mc-work, hopefully you'll be able to set the log level after I tested and merged #76.

Hello @thomas-mc-work, the 6.4 tag has been released, which enables you to overwrite the logback.xml configuration file to adjust the log level. Please take a look at the README.md file for instructions.

Could you let me know if this works for you?

That was working perfectly! Thank you very much ๐Ÿ˜˜

Two suggestions:

  • I've set it to WARNING which I think might be the best default value
  • I've mounted it with the :ro flag as it's never written to

Hi @thomas-mc-work, I am glad to hear that this is working for you. I'll consider updating the instructions with the :ro flag.

I have contemplated setting the default to WARNING too, but I decided against it because it would require overwriting LanguageTool's default configuration with a "custom" default specifically for this Dockerized version. If LanguageTool updates their defaults in the future, those changes would not be reflected automatically in this Dockerized version. Moreover, I believe that LanguageTool should establish any sensible default settings themselves.