[Lldb-commits] [lldb] f5efc08 - Make it clear that log enable's output file is per channel not per category (#196178)
via lldb-commits
lldb-commits at lists.llvm.org
Wed May 6 15:50:54 PDT 2026
Author: jimingham
Date: 2026-05-06T15:50:51-07:00
New Revision: f5efc08f2b7ee221a2bc67d0db52c2eeecaa83bb
URL: https://github.com/llvm/llvm-project/commit/f5efc08f2b7ee221a2bc67d0db52c2eeecaa83bb
DIFF: https://github.com/llvm/llvm-project/commit/f5efc08f2b7ee221a2bc67d0db52c2eeecaa83bb.diff
LOG: Make it clear that log enable's output file is per channel not per category (#196178)
It is natural to try:
```
log enable -f file1 lldb step
log enable -f file2 lldb process
```
or whatever, and then be surprised that all the logs end up in
`file2`... The help on `log enable`'s `-f` option didn't specify what
you were setting the file for. This PR just changes the help text to be
clear about the current state of things.
Added:
Modified:
lldb/source/Commands/Options.td
Removed:
################################################################################
diff --git a/lldb/source/Commands/Options.td b/lldb/source/Commands/Options.td
index 12e06d4f8b2ad..ba6781dcab04e 100644
--- a/lldb/source/Commands/Options.td
+++ b/lldb/source/Commands/Options.td
@@ -867,7 +867,8 @@ let Command = "log enable" in {
def log_file : Option<"file", "f">,
Group<1>,
Arg<"Filename">,
- Desc<"Set the destination file to log to.">;
+ Desc<"Set the destination file that all the enabled "
+ "categories in the specified log channel will log to.">;
def log_handler : Option<"log-handler", "h">,
Group<1>,
EnumArg<"LogHandler">,
More information about the lldb-commits
mailing list