<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/78334>78334</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [lldb-dap] Enabling LLDB logging to a file does not work in lldb-dap
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ashgti
      </td>
    </tr>
</table>

<pre>
    If you are using lldb/tools/lldb-dap and you try to enable logging to a file using something like:

```
lldb> log enable -f /tmp/my_log.txt llvm api
```

The file is never created and logging is not configured. Instead the logs are sent over the DAP as `Console` messages which may overwhelm the DAP with a large amount of logging, see https://github.com/llvm/llvm-project/blob/32dd5b20973bde1ef77fa3b84b9f85788a1a303a/lldb/tools/lldb-dap/lldb-dap.cpp#L1520

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUUr1urDgUfhrTHAUZm9-CIslkpEgptth-dYwP4I3BCJvMztuv7ITcW6S5EjIYcz6-P_TeTCtRz6onVl0yPMLs9h79PAWTKafv_esId3cA7gSHN-sE1mrFxDU4Zz0T17h90LgBrjp9GfY7BAe0orIE1k1TnAoOEEZjTxTvFgpzwjPvxOQj4xfGz7XmX1fapj_Kl4h1wj6MEDksGxPX5f6PdVMe_gtg7ccCuJkfYT7Xv2f65GE8rPRBOww7YSCdBJx046ELMLh1NNOxk87hdfWBUEOYkyqfLPG0BnARJb6-PP4F6IHV_Nmt3lliNYeFvMeJPNxmM8yw4D0N3Gayy_fUzYQZECzuEwEu7oiw40mHiWfwRDCHsPnolbgycZ1MmA-VD25JMXyct4dtd__SEJi4KutiVlJoXSnBu0YqTQWNTTOiVG2purGtmrbFAiWX-BXnD-n-9pgP28aEfCsq8WVspnupO9lhRn3R8KqUspVlNvfIu6HGWnc1Va1AXlbUNM0gCyU4tUWZmV5wUfKiqItONkWZS85Vja0SqhqwqAZWclrQ2DwKy90-Zcb7g_qmlbLMLCqyPpVXiJVukA6ZELHLe5_MUMfkWcmt8cH_Qgkm2NT6b4HVBV5it2L6b2-Xpx-aqx191uLm9ncwK5zD2bHb_o_DSWSjyUnM_wEAAP__GhQjUQ">