How to configure file based logging in stackstorm docker setup

Hi, i need to setup all the stdout logs into a log file in my host machine. i’ve proceeded with the official documentation which is Nginx and WSGI — StackStorm 3.3.0 documentation and added

[handler_fileHandler]
class=st2common.log.FormatNamedFileHandler
level=INFO
formatter=verboseConsoleFormatter
args=(’/var/log/st2/st2actionrunner.{pid}.log’,)

But this also not working

It’s within Docker best practices to make the containers immutable and output logs to stream which will be then available via docker logs or kubectl logs.

If you need logs as files, I’d recommend to install StackStorm in a Virtual Machine instead.