From 2c176f0f5bf72deb1864acf6c7b4efb902c5a12e Mon Sep 17 00:00:00 2001 From: Christian Blume Date: Sun, 12 Feb 2023 18:04:29 +1300 Subject: [PATCH] fix cmd line option --- README.md | 3 ++- src/scriptor.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e8d9af6..ffc7457 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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. diff --git a/src/scriptor.cpp b/src/scriptor.cpp index e314962..9e7d5ba 100644 --- a/src/scriptor.cpp +++ b/src/scriptor.cpp @@ -69,7 +69,7 @@ run(int argc, char** argv) opt.file_sink_max_file_size, &opt.file_sink_max_file_size); op.add>("", - "file_sink_max_files", + "filelog_max_files", "The filelog max files", opt.file_sink_max_files, &opt.file_sink_max_files);