Currently i’m running the LoRa Gateway OS Full version on my RPi.
I’ve followed the installation guide and all components seems to be working.
All the services seems to be running in order when in check these with the “sudo monit status” command.
LoRa Server status : OK
LoRa packer formwared status : OK
LoRa gateway bridge status : OK
For debug purposes I want to view the log files for all the LoRa Server components:
Gateway bridge
LoRa Server
i’ve edited the **.toml config files to set the debug level to 5 for maximum debug output.
There is stated that i could view the log files by 2 means:
Take a peak at : tail -f /var/log/lora-gateway-bridge/lora-gateway-bridge.log
or use systemd: journalctl -u lora-gateway-bridge -f -n 50
The journalctl command is not found within my command line so this one i couldn’t use.
In the /var/log/ directory no log files of either one of the LoRa server components can be found.
See screenshot below for my /var/log directory.
Could anybody help me with enabling / finding the log files for the LoRa Server components?
LoRa Gateway OS runs on devices that are memory constraint and running on flash memory. Logging to files would either wear out the flash pretty soon or potentially let the gateway run out of memory when it would write logs to a tempfs.
If you want to see the output logs, you need to run the components manually from the CLI.
First of all, make sure that the process that you are going to start is not running in the background (sudo monit status loraserver) if it is started, stop it (sudo monit stop loraserver).
should I start the process manually to see the whole log?
Yes, and that is exactly what the commands in my previous comment are doing