Send logs to stdout when using WCS docker image

chpat

New Member
Hello,
Using latest version of Flashphoner, I was not able to get the app to log to stdout.

I am using the latest public docker image.
When I start the app with a docker run, I get all the output from the script run-wcs.sh (startup logs, license activation, etc.) but nothing else.
Logs are correctly written inside the container, for example in logs/server_logs.
I know I can mount volumes to"export" the logs outside of the container, but I am not interested. I would like the app to just write all the logs to stdout, for them to be catched by systemd/journalctl.

The default log4j configuration contains a log4j.ConsoleAppender but it doesn't seem to work by default.

I can use the mode standalone when starting the server, and I get logs in stdout, but there is A LOT of logs, and in standalone mode, log4j configuration doesn't seem to be used to filter unnecessary

What is the recommended way to get WARN/ERROR logs sent to stdout in production using latest docker image?

Thanks a lot for your help.
 
Last edited:

Max

Administrator
Staff member
Good day
Please use a standard command to display server log to the stdout:
Code:
tail -F /usr/local/FlashphonerWebCallServer/logs/server_logs/flashphoner.log
 

chpat

New Member
I added the following line in run-wcs.sh after the webcallserver start

Code:
tail -n0 -F /usr/local/FlashphonerWebCallServer/logs/server_logs/flashphoner.log &
It's a bit hacky but it works as expected.

Thanks
 
Top