On Thu, Jan 21, 2021 at 7:27 AM Fotis Panagiotopoulos <f.j.pa...@gmail.com> wrote:
> Hi, > > I am in need of having the syslog to output to multiple channels. > There shall be a file in an SD card where syslog will always output the > messages. > Simultaneously I need to be able to see the log in real-time in a serial > console, or possibly through network. > > Yes, it's a very useful feature. > Is this possible? As far as I can tell, there can be only one syslog active > at a time? > But, it isn't supported by NuttX directly now. > Or is there any way to redirect it to multiple outputs? > One approach is change g_syslog_channel to list: https://github.com/apache/incubator-nuttx/blob/master/drivers/syslog/syslog_channel.c#L110 and forward the log to all entries in the list.