mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
Fix typos and ommissions in logger docs
This commit is contained in:
parent
b228788cc0
commit
e5c4ad31c7
|
@ -40,12 +40,12 @@ When running a FairMQ device, the log severity can be simply provided via `--sev
|
||||||
|
|
||||||
## 5.2 Log verbosity
|
## 5.2 Log verbosity
|
||||||
|
|
||||||
The log severity is controlled via:
|
The log verbosity is controlled via:
|
||||||
```C++
|
```C++
|
||||||
fair::Logget::SetVerbosity("<verbosity level>");
|
fair::Logget::SetVerbosity("<verbosity level>");
|
||||||
```
|
```
|
||||||
|
|
||||||
it is same for all sinks, and is one of the follwing values: `low`, `medium`, `high`, `veryhigh`, which translates to following output:
|
it is same for all sinks, and is one of the following values: `low`, `medium`, `high`, `veryhigh`, which translates to following output:
|
||||||
|
|
||||||
```
|
```
|
||||||
low: [severity] message
|
low: [severity] message
|
||||||
|
@ -63,6 +63,8 @@ Colored output on console can be activated with:
|
||||||
Logger::SetConsoleColor(true);
|
Logger::SetConsoleColor(true);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
When running a FairMQ device, the log color (console) can be simply provided via `--color <true/false>` cmd option (default is true).
|
||||||
|
|
||||||
## 5.4 File output
|
## 5.4 File output
|
||||||
|
|
||||||
Output to file can be enabled via:
|
Output to file can be enabled via:
|
||||||
|
@ -71,6 +73,8 @@ Logger::InitFileSink("<severity level>", "test_log", true);
|
||||||
```
|
```
|
||||||
which will add output to "test_log" filename (if third parameter is `true` it will add timestamp to the file name) with `<severity level>` severity.
|
which will add output to "test_log" filename (if third parameter is `true` it will add timestamp to the file name) with `<severity level>` severity.
|
||||||
|
|
||||||
|
When running a FairMQ device, the log file can be simply provided via `--log-to-file <filename_prefix>` cmd option (this will also turn off console output).
|
||||||
|
|
||||||
## 5.5 Custom sinks
|
## 5.5 Custom sinks
|
||||||
|
|
||||||
Custom sinks can be added via `Logger::AddCustomSink("sink name", "<severity>", callback)` method.
|
Custom sinks can be added via `Logger::AddCustomSink("sink name", "<severity>", callback)` method.
|
||||||
|
|
|
@ -278,7 +278,6 @@ void FairMQProgOptions::InitOptionDescription()
|
||||||
("initialization-timeout", po::value<int >()->default_value(120), "Timeout for the initialization in seconds (when expecting dynamic initialization).")
|
("initialization-timeout", po::value<int >()->default_value(120), "Timeout for the initialization in seconds (when expecting dynamic initialization).")
|
||||||
("port-range-min", po::value<int >()->default_value(22000), "Start of the port range for dynamic initialization.")
|
("port-range-min", po::value<int >()->default_value(22000), "Start of the port range for dynamic initialization.")
|
||||||
("port-range-max", po::value<int >()->default_value(32000), "End of the port range for dynamic initialization.")
|
("port-range-max", po::value<int >()->default_value(32000), "End of the port range for dynamic initialization.")
|
||||||
("log-to-file", po::value<string>()->default_value(""), "Log output to a file.")
|
|
||||||
("print-channels", po::value<bool >()->implicit_value(true), "Print registered channel endpoints in a machine-readable format (<channel name>:<min num subchannels>:<max num subchannels>)")
|
("print-channels", po::value<bool >()->implicit_value(true), "Print registered channel endpoints in a machine-readable format (<channel name>:<min num subchannels>:<max num subchannels>)")
|
||||||
("shm-segment-size", po::value<size_t>()->default_value(2000000000), "Shared memory: size of the shared memory segment (in bytes).")
|
("shm-segment-size", po::value<size_t>()->default_value(2000000000), "Shared memory: size of the shared memory segment (in bytes).")
|
||||||
("rate", po::value<float >()->default_value(0.), "Rate for conditional run loop (Hz).")
|
("rate", po::value<float >()->default_value(0.), "Rate for conditional run loop (Hz).")
|
||||||
|
|
|
@ -30,9 +30,10 @@ FairProgOptions::FairProgOptions()
|
||||||
fGeneralDesc.add_options()
|
fGeneralDesc.add_options()
|
||||||
("help,h", "produce help")
|
("help,h", "produce help")
|
||||||
("version,v", "print version")
|
("version,v", "print version")
|
||||||
("severity", po::value<string>()->default_value("debug"), "Log severity level : trace, debug, info, state, warn, error, fatal, nolog")
|
("severity", po::value<string>()->default_value("debug"), "Log severity level: trace, debug, info, state, warn, error, fatal, nolog")
|
||||||
("verbosity", po::value<string>()->default_value("medium"), "Log verbosity level : veryhigh, high, medium, low")
|
("verbosity", po::value<string>()->default_value("medium"), "Log verbosity level: veryhigh, high, medium, low")
|
||||||
("color", po::value<bool>()->default_value(true), "Log color (true/false)")
|
("color", po::value<bool>()->default_value(true), "Log color (true/false)")
|
||||||
|
("log-to-file", po::value<string>()->default_value(""), "Log output to a file.")
|
||||||
("print-options", po::value<bool>()->implicit_value(true), "print options in machine-readable format (<option>:<computed-value>:<type>:<description>)");
|
("print-options", po::value<bool>()->implicit_value(true), "print options in machine-readable format (<option>:<computed-value>:<type>:<description>)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user