mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-17 05:47:53 +08:00
Default syslog priority to INFO. Add rtems_setlogpriority to configure the priority.
The rc.conf has 'syslog_priority' where the priority is the name, eg syslog_priority="debug" sets the priority to "debug".
This commit is contained in:
@@ -221,6 +221,15 @@ void rtems_bsd_set_vprintf_handler(int (*new_vprintf_handler)
|
||||
*/
|
||||
int rtems_bsd_vprintf(int level, const char *fmt, va_list ap);
|
||||
|
||||
/**
|
||||
* @brief Set the syslog priority. See syslog.h for the names.
|
||||
*
|
||||
* @param priority One of the standard names.
|
||||
* @retval 0 Priority set.
|
||||
* @retval errno Otherwise.
|
||||
*/
|
||||
int rtems_bsd_setlogpriority(const char* priority);
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Reference in New Issue
Block a user