Add a SYSLOG character device that can be used to re-direct output to the SYSLOG

This commit is contained in:
Gregory Nutt
2016-07-05 12:58:18 -06:00
parent a39ce80add
commit 02b91d9880
6 changed files with 165 additions and 4 deletions
+18
View File
@@ -271,6 +271,24 @@ int syslog_flush(void);
int _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
}