Skip to content

Commit 2c176f0

Browse files
committed
fix cmd line option
1 parent 3e8152d commit 2c176f0

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ scriptor - A high-performance logger using unix/tcp sockets:
5353
--threads arg (=4) The number of producer threads
5454
--filelog_filename arg The filelog filename
5555
--filelog_max_file_mb arg (=10) The filelog max file size in MB
56-
--file_sink_max_files arg (=3) The filelog max files
56+
--filelog_max_files arg (=3) The filelog max files
5757
--filelog_level arg (=0) The filelog log level (0>=level<=5)
5858
--systemd_logging Enables logging to systemd (Linux only)
5959
--systemd_level arg (=0) The systemd log level (0>=level<=5)
@@ -62,6 +62,7 @@ scriptor - A high-performance logger using unix/tcp sockets:
6262
--eventlog_logging Enables logging to eventlog (Windows only)
6363
--eventlog_level arg (=0) The eventlog log level (0>=level<=5)
6464
```
65+
You must either provide `socket_file` (unix socket) or `socket_address` (tcp socket).
6566
Logging to systemd and syslog is only available on Linux.
6667
Logging to EventLog is only available on Windows.
6768

src/scriptor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ run(int argc, char** argv)
6969
opt.file_sink_max_file_size,
7070
&opt.file_sink_max_file_size);
7171
op.add<popl::Value<std::size_t>>("",
72-
"file_sink_max_files",
72+
"filelog_max_files",
7373
"The filelog max files",
7474
opt.file_sink_max_files,
7575
&opt.file_sink_max_files);

0 commit comments

Comments
 (0)