mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
drivers/syslog: syslog_initialize initialize dev/syslog too and call syslog to add the prefix and timestamp
This commit is contained in:
@@ -187,6 +187,24 @@ int syslog_dev_channel(void);
|
||||
int syslog_console_channel(void);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: syslog_register
|
||||
*
|
||||
* Description:
|
||||
* Register a simple character driver at /dev/syslog whose write() method
|
||||
* will transfer data to the SYSLOG device. This can be useful if, for
|
||||
* example, you want to redirect the output of a program to the SYSLOG.
|
||||
*
|
||||
* NOTE that unlike other syslog output, this data is unformatted raw
|
||||
* byte output with no time-stamping or any other SYSLOG features
|
||||
* supported.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_SYSLOG_CHARDEV
|
||||
void syslog_register(void);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: syslog_add_intbuffer
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user