Hello Theodoros.
Am 13.02.2014 12:47, schrieb Theodoros Bourchas:
I would like to store log messages of the ibrdtn daemon. In the configuration file (/etc/config/ibrdtn) there is the /tmp/ibrdtn.log, but only INFO type of log messages appear there.
I would like to store NOTICE type of log messages as they appear , when I execute "dtnd -v" command. Is there any way to do this? Or how can I have the sequence of bundle events stored in a file?
There is no standard approach to do that. You have to hack the script which starts IBR-DTN. Open the file /usr/sbin/dtnd-safety-wrapper.sh and change the line:
echo "${DTND} ${DEBUG_ARGS} -c ${TMPCONF} ${LOGGING}" | /bin/sh
to:
echo "${DTND} ${DEBUG_ARGS} -v -c ${TMPCONF} ${LOGGING}" | /bin/sh
That will activate the logging of NOTICE message.
To explain why "-v" is disabled by default, the logging with NOTICE messages leads to a large amount of data, which is not available on all devices. Thus, extended logging is not recommended on OpenWrt.
Kind regards, Johannes Morgenroth