Skip to content

Commit

Permalink
fix cmd line option
Browse files Browse the repository at this point in the history
  • Loading branch information
bloomen committed Feb 12, 2023
1 parent 3e8152d commit 2c176f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ scriptor - A high-performance logger using unix/tcp sockets:
--threads arg (=4) The number of producer threads
--filelog_filename arg The filelog filename
--filelog_max_file_mb arg (=10) The filelog max file size in MB
--file_sink_max_files arg (=3) The filelog max files
--filelog_max_files arg (=3) The filelog max files
--filelog_level arg (=0) The filelog log level (0>=level<=5)
--systemd_logging Enables logging to systemd (Linux only)
--systemd_level arg (=0) The systemd log level (0>=level<=5)
Expand All @@ -62,6 +62,7 @@ scriptor - A high-performance logger using unix/tcp sockets:
--eventlog_logging Enables logging to eventlog (Windows only)
--eventlog_level arg (=0) The eventlog log level (0>=level<=5)
```
You must either provide `socket_file` (unix socket) or `socket_address` (tcp socket).
Logging to systemd and syslog is only available on Linux.
Logging to EventLog is only available on Windows.

Expand Down
2 changes: 1 addition & 1 deletion src/scriptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ run(int argc, char** argv)
opt.file_sink_max_file_size,
&opt.file_sink_max_file_size);
op.add<popl::Value<std::size_t>>("",
"file_sink_max_files",
"filelog_max_files",
"The filelog max files",
opt.file_sink_max_files,
&opt.file_sink_max_files);
Expand Down

0 comments on commit 2c176f0

Please sign in to comment.