Is there a way how we can capture all the console messages to a file that are coming from different applications in linux.
in /etc/syslog.conf or /etc/rsyslog.conf add something like below
usually syslog or rsyslog.
more advanced options available
# => all acpid messages for debuging (uncomment if needed): if ($programname == 'acpid' or $syslogtag == '[acpid]:') then \ -/var/log/acpid
Using rsyslog you can even log to mysql database.
This can be dangerous as you can fill your hard drive/storage and crash your OS if you don't delete them at some point.