projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement syslog.
[bertos.git]
/
bertos
/
cfg
/
cfg_syslog.h
diff --git
a/bertos/cfg/cfg_syslog.h
b/bertos/cfg/cfg_syslog.h
index 922a5f7b4c6f1124760c4dd71c6e8025d25d27db..69bc990c7d828e3df75e126c1aeeee4ed1e20f63 100644
(file)
--- a/
bertos/cfg/cfg_syslog.h
+++ b/
bertos/cfg/cfg_syslog.h
@@
-39,19
+39,32
@@
#define CFG_SYSLOG_H
/**
#define CFG_SYSLOG_H
/**
- *
Module logging level
.
+ *
Enable the net logging
.
*
*
- * $WIZ$ type = "enum"
- * $WIZ$ value_list = "log_level"
+ * $WIZ$ type = "bool"
*/
*/
-#define
SYSLOG_LOG_LEVEL LOG_LVL_WARN
+#define
CONFIG_SYSLOG_NET 1
/**
/**
- *
Module logging format
.
+ *
Enable the serial logging
.
*
*
- * $WIZ$ type = "enum"
- * $WIZ$ value_list = "log_format"
+ * $WIZ$ type = "bool"
*/
*/
-#define SYSLOG_LOG_FORMAT LOG_FMT_VERBOSE
+#define CONFIG_SYSLOG_SERIAL 1
+
+/**
+ * Destination port of log messages
+ *
+ * $WIZ$ type = "int"
+ */
+#define CONFIG_SYSLOG_PORT 514
+
+/**
+ * Max log message length.
+ *
+ * $WIZ$ type = "int"
+ */
+#define CONFIG_SYSLOG_BUFSIZE 256
+
#endif /* CFG_SYSLOG_H */
#endif /* CFG_SYSLOG_H */