drivers/syslog: syslog_initialize initialize dev/syslog too and call syslog to add the prefix and timestamp

This commit is contained in:
Xiang Xiao
2018-11-09 08:49:07 -06:00
committed by Gregory Nutt
parent f579c43754
commit 7828dff2ea
4 changed files with 28 additions and 20 deletions
-18
View File
@@ -277,24 +277,6 @@ int syslog_flush(void);
int nx_vsyslog(int priority, FAR const IPTR char *src, FAR va_list *ap);
/****************************************************************************
* 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
#undef EXTERN
#ifdef __cplusplus
}