MinimServer Forum
Logging to stdout - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Logging to stdout (/showthread.php?tid=7561)



Logging to stdout - cerbaire - 24-06-2025 13:15

Hi everyone!

I find in the documentation how not to generate logs in minimserver.log using '.logFile = -'.
But is there a way to write logs to stdout, and errors to stderr?

Kind regards


RE: Logging to stdout - simoncn - 24-06-2025 18:32

It isn't possible to redirect MinimServer log messages and error messages. Instead, you could use tail -f to monitor messages written to the log file and send these messages wherever you want. You can use logLevel to control which messages are logged but there isn't any reliable way to identify which logged messages represent errors and which messages are informational or warnings.