Store the logs of chirpstack modules in a file

I was trying to pipe the output of chirpstack modules to new file as follows
I am running on alpine system arm64
/usr/bin/chirpstack-gateway-bridge -c /app/chirpstack-gateway-bridge.toml | tee -a /var/lib/veea/chirpstack-gateway-bridge/chirpstack-gateway-bridge.log &

./chirpstack-gateway-bridge >> ~/Downloads/chirpstack-gateway-bridge_3.9.2_linux_arm64/gwbridge.log

But the log file is empty and not storing any logs that are visible on terminal.

  1. Why are the logs not storing in the files I mentioned in above commands
  2. Is there any default location where we can find the logs of chirpstack modules

log output depends on if your distribution uses init.d or systemd.

I am using in arm64 alpine. It does have init.d but couldn’t find any logs over there

Found the solution I had to pipe the stderr to stdout mentioned in

/usr/bin/chirpstack-gateway-bridge -c /app/chirpstack-gateway-bridge.toml  2>&1 | tee -a /var/lib/veea/chirpstack-gateway-bridge/chirpstack-gateway-bridge.log &