aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src/transport.config
diff options
context:
space:
mode:
Diffstat (limited to 'libtransport/src/transport.config')
-rw-r--r--libtransport/src/transport.config52
1 files changed, 43 insertions, 9 deletions
diff --git a/libtransport/src/transport.config b/libtransport/src/transport.config
index a21175b8d..89db204d5 100644
--- a/libtransport/src/transport.config
+++ b/libtransport/src/transport.config
@@ -1,27 +1,61 @@
// Configuration for io_module
-
io_module = {
path = [];
name = "forwarder_module";
};
+// Configuration for forwarder io_module
forwarder = {
n_threads = 1;
-
- listeners = {
- l0 = {
- local_address = "127.0.0.1";
- local_port = 33436;
- }
- };
connectors = {
c0 = {
/* local_address and local_port are optional */
local_address = "127.0.0.1";
local_port = 33436;
- remote_address = "10.20.30.40";
+ remote_address = "127.0.0.1";
remote_port = 33436;
}
};
+
+ listeners = {
+ l0 = {
+ local_address = "127.0.0.1";
+ local_port = 33437;
+ }
+ };
+};
+
+// Logging
+log = {
+ // Log level (INFO (0), WARNING (1), ERROR (2), FATAL (3))
+ minloglevel = 0;
+
+ // Verbosity level for debug logs
+ v= 2;
+
+ // Log to stderr
+ logtostderr = true;
+
+ // Get fancy colored logs
+ colorlogtostderr = true;
+
+ // Log messages above this level also to stderr
+ stderrthreshold = 2;
+
+ // Set log prefix for each line log
+ log_prefix = true;
+
+ // Log dir
+ log_dir = "/tmp";
+
+ // Log only specific modules.
+ // Example: "membuf=2,rtc=3"
+ vmodule = "";
+
+ // Max log size in MB
+ max_log_size = 10;
+
+ // Log rotation
+ stop_logging_if_full_disk = true;
}; \ No newline at end of file