summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/rtems/bsd/bsd.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-06-30 09:14:55 +1000
committerChris Johns <chrisj@rtems.org>2016-06-30 09:14:55 +1000
commit4a2b84469e41786a2cde2b59447f0f135a99e614 (patch)
tree2c945c8395600a47553b9e1a79b02a12f4c317d0 /rtemsbsd/include/rtems/bsd/bsd.h
parentAdd ftpd as a service. Add rtems-bsd-config.h for app libbsd set up. (diff)
downloadrtems-libbsd-4a2b84469e41786a2cde2b59447f0f135a99e614.tar.bz2
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".
Diffstat (limited to 'rtemsbsd/include/rtems/bsd/bsd.h')
-rw-r--r--rtemsbsd/include/rtems/bsd/bsd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/rtemsbsd/include/rtems/bsd/bsd.h b/rtemsbsd/include/rtems/bsd/bsd.h
index 1583dc9e..f687eaf6 100644
--- a/rtemsbsd/include/rtems/bsd/bsd.h
+++ b/rtemsbsd/include/rtems/bsd/bsd.h
@@ -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