Linux non-blocking fifo (on demand logging)

前端 未结 10 2317
你的背包
你的背包 2020-11-29 19:20

I like to log a programs output \'on demand\'. Eg. the output is logged to the terminal, but another process can hook on the current output at any time.

The classic

10条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-29 19:50

    BusyBox often used on embedded devices can create a ram buffered log by

    syslogd -C
    

    which can be filled by

    logger
    

    and read by

    logread
    

    Works quite well, but only provides one global log.

提交回复
热议问题