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">,


        
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to