8000 Docs: `--log.line-number` also logs function name (#14326) (#14342) · arangodb/arangodb@43869a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 43869a0

Browse files
Simran-BKVS85
andauthored
Docs: --log.line-number also logs function name (#14326) (#14342)
Co-authored-by: Vadim Kondratyev <vadim@arangodb.com>
1 parent 31f123c commit 43869a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Logger/LoggerFeature.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ void LoggerFeature::collectOptions(std::shared_ptr<ProgramOptions> options) {
195195
new StringParameter(&_file),
196196
arangodb::options::makeDefaultFlags(arangodb::options::Flags::Hidden));
197197

198-
options->addOption("--log.line-number", "append line number and file name",
198+
options->addOption("--log.line-number",
199+
"include the function name, file name and line number of the source code "
200+
"that issues the log message. Format: `[func@FileName.cpp:123]`",
199201
new BooleanParameter(&_lineNumber),
200202
arangodb::options::makeDefaultFlags(arangodb::options::Flags::Hidden));
201203

0 commit comments

Comments
 (0)
0