Implement syslog.
[bertos.git] / bertos / cfg / cfg_syslog.h
index 922a5f7b4c6f1124760c4dd71c6e8025d25d27db..69bc990c7d828e3df75e126c1aeeee4ed1e20f63 100644 (file)
 #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 */