@@ -77,4 +77,37 @@ Options:
77
77
-V, --version
78
78
Print version
79
79
```
80
+ ## Example
80
81
82
+ Below is an example of using this command line tool as proxy between device and data storage server with command and console output.
83
+
84
+ ```
85
+ $ proxy_logger --bind-listener-addr 127.0.0.1:20502 --remote-addr 127.0.0.1:20582
86
+ [2024-06-04T02:39:33Z INFO] Listener binded, waiting for incoming connections...
87
+ [2024-06-04T02:39:37Z INFO] Incoming connection from 127.0.0.1:50376
88
+ [2024-06-04T02:39:37Z DEBUG] < 00:00:00:00:00:19:6f:03:16:00:1f:00:20:00:11:00:22:00:33:00:44:00:55:00:66:00:01:00:00:00:00
89
+ [2024-06-04T02:39:37Z DEBUG] > 00:00:00:00:00:0b:6f:10:03:f1:00:02:04:00:00:00:00
90
+ [2024-06-04T02:39:37Z DEBUG] < 00:00:00:00:00:06:6f:10:03:f1:00:02
91
+ [2024-06-04T02:39:37Z DEBUG] > 00:01:00:00:00:06:6f:03:00:7a:00:01:00:02:00:00:00:06:6f:03:00:7b:00:02
92
+ [2024-06-04T02:39:37Z DEBUG] < 00:01:00:00:00:05:6f:03:02:02:ff:00:02:00:00:00:07:6f:03:04:00:00:00:01
93
+ [2024-06-04T02:39:37Z DEBUG] > 00:03:00:00:00:06:01:01:00:01:00:01:00:04:00:00:00:06:01:02:00:01:00:01:00:05:00:00:00:06:01:03:00:01:00:10:00:06:00:00:00:06:01:03:00:11:00:01:00:07:00:00:00:06:01:03:00:7b:00:01:00:08:00:00:00:06:01:03:0f:a0:00:01:00:09:00:00:00:06:01:03:13:88:00:03:00:0a:00:00:00:06:01:04:00:01:00:01
94
+ [2024-06-04T02:39:37Z DEBUG] < 00:03:00:00:00:04:01:01:01:01:00:04:00:00:00:04:01:02:01:01:00:05:00:00:00:23:01:03:20:00:7b:00:0c:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:01:36:40:49:0f:db:40:09:21:fb:54:44:2d:18:ff:ff:00:06:00:00:00:05:01:03:02:ff:ff:00:07:00:00:00:05:01:03:02:00:01:00:08:00:00:00:03:01:83:02:00:09:00:00:00:09:01:03:06:00:01:00:02:00:03:00:0a:00:00:00:05:01:04:02:00:7b
95
+ [2024-06-04T02:40:18Z DEBUG] > 00:0b:00:00:00:06:6f:03:03:e8:00:01
96
+ [2024-06-04T02:40:18Z DEBUG] < 00:0b:00:00:00:05:6f:03:02:00:00
97
+ ```
98
+
99
+ ## License
100
+
101
+ Licensed under either of
102
+
103
+ - Apache License, Version 2.0, ([ LICENSE-APACHE] ( LICENSE-APACHE ) or https://www.apache.org/licenses/LICENSE-2.0 )
104
+ - MIT license ([ LICENSE-MIT] ( LICENSE-MIT ) or https://opensource.org/licenses/MIT )
105
+
106
+ at your option.
107
+
108
+ ## Contribution
109
+
110
+ Unless you explicitly state otherwise, any contribution intentionally
111
+ submitted for inclusion in the work by you, as defined in the Apache-2.0
112
+ license, shall be dual licensed as above, without any additional terms or
113
+ conditions.
0 commit comments