Colibri IMX6 Logging support (syslog)

Hi

Is there a system-wide logging (syslog) built into the default arm-angstrom-linux-gnueabi or console-trdx-image? I have not been able to find syslog on these images.

I would like to create a helloworld application like the link below to write data into syslog.
http://c.happycodings.com/gnu-linux/code21.html

Is there a package that needs to be installed or configured for that feature to work? Is there another logging mechanism that is built into these images that can support my need instead of syslog?

Any help / suggestion is appreciated.
Thanks

Hi

In our demo images we use journald for logging of system messages.
journalctl can be used to read those messages.

You could log from the command line with the logger command, I also expect the code example you reference to work without any further change to the code or the image.

root@colibri-imx6:~# logger Hi syslogger!
root@colibri-imx6:~# journalctl -f --no-full
-- Logs begin at Sat 2016-07-16 21:19:41 UTC. --
Jul 21 19:55:04 colibri-imx6 systemd[1]: Started OpenSSH Per-Connection Dae....
...
Jul 21 19:55:05 colibri-imx6 systemd[1]: Started Session c1 of user root.
Jul 21 19:55:20 colibri-imx6 root[623]: Hi syslogger!

Regards
Max

Regarding syslog. There is probably the busybox version syslogd installed, but it is not running per default (atleast on the imx7). To start it one could do

start-stop-daemon --start --exec syslogd -- -C100

This will run it in the background and one can read the logs with logread. The -C option is to store the log in RAM. For other options check ( https://busybox.net/downloads/BusyBox.html ). One can also easily start it at boot time with a small systemctl service script.

PS. I know the question is old, but just if someone is searching for syslog

hello
Thanks for the update. I tried this and it is working.