Hello Theodoros.
Am 13.02.2014 12:47, schrieb Theodoros Bourchas:
There is no standard approach to do that. You have to hack the script> 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?
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
--
Johannes Morgenroth Institut fuer Betriebssysteme und Rechnerverbund
Tel.: +49-531-391-3249 Muehlenpfordtstrasse 23
Fax.: +49-531-391-5936 TU Braunschweig D-38106 Braunschweig