Skip to content

Commit 3fb2057

Browse files
committed
docs: v0.1.2
1 parent 9cab807 commit 3fb2057

File tree

4 files changed

+52
-3
lines changed

4 files changed

+52
-3
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## v0.1.2 (21.06.2024)
2+
3+
- Added ability to provide custom bytes separator via command line argument `--separator`.
4+
- Added ability to provide custom timestamp precision of console payload output via command line argument `--precision`.
5+
- Removed redundant module path and target from console output.
6+
- Bump minimal supported rust version (MSRV) to 1.79.0.
7+
- README improvements.
8+
- Dependencies updates:
9+
- `bytes` from 1.4.0 to 1.5.0
10+
- `clap` from 4.2.5 to 4.4.7
11+
- `log` from 0.4.17 to 0.4.20
12+
- `logged-stream` from 0.2.5 to 0.3.4
13+
- `tokio` from 1.27.0 to 1.32.0
14+
- Some indirect dependencies.
15+
16+
## v0.1.1 (20.06.2024)
17+
18+
- README improvements

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "proxy_logger"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
authors = ["Elijah Samson <elijahobara357@gmail.com>"]
55
description = "Command line interface for proxying TCP connections with payload output into console which can be formatted different ways."
66
keywords = ["network", "tcp", "proxy", "logging", "debugging"]
@@ -17,7 +17,7 @@ edition = "2021"
1717

1818
[dependencies]
1919
bytes = "1.6.0"
20-
clap = { version = "4.5.6", features = ["std", "derive"] }
20+
clap = { version = "4.5.7", features = ["std", "derive"] }
2121
env_logger = "0.11.3"
2222
log = "0.4.21"
2323
logged-stream = "0.3.5"

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,34 @@ Now you can run compiled binary:
4747
```sh
4848
$ proxy_logger --bind-listener-addr 127.0.0.1:20502 --remote-addr 127.0.0.1:20582
4949
```
50+
## Options
51+
52+
Below is a list of currently supported options.
53+
54+
```
55+
$ proxy_logger --help
56+
Command line interface for proxying TCP connections with payload output into console which can be formatted different ways.
57+
58+
Usage: proxy_logger [OPTIONS] --bind-listener-addr <BIND_LISTENER_ADDR> --remote-addr <REMOTE_ADDR>
59+
60+
Options:
61+
-l, --level <LEVEL>
62+
Application logging level [default: debug] [possible values: trace, debug, info, warn, error, off]
63+
-b, --bind-listener-addr <BIND_LISTENER_ADDR>
64+
Address on which TCP listener should be binded
65+
-r, --remote-addr <REMOTE_ADDR>
66+
Address of remote server
67+
-t, --timeout <TIMEOUT>
68+
Incoming connection reading timeout [default: 60]
69+
-f, --formatting <FORMATTING>
70+
Formatting of console payload output, [default: lowerhex] [possible values: decimal, lowerhex, upperhex, binary, octal]
71+
-s, --separator <SEPARATOR>
72+
Console payload output bytes separator [default: :]
73+
-p, --precision <PRECISION>
74+
Timestamp precision [default: seconds] [possible values: seconds, milliseconds, microseconds, nanoseconds]
75+
-h, --help
76+
Print help
77+
-V, --version
78+
Print version
79+
```
80+

0 commit comments

Comments
 (0)