llvm-project/lldb/test/Shell/Host/TestSytemLogChannel.test
Jonas Devlieghere c77b107461
[lldb] Introduce an always-on system log category/channel (#108495)
Add an "always on" log category and channel. Unlike other, existing log
channels, it is not exposed to users. The channel is meant to be used
sparsely and deliberately for logging high-value information to the
system log.

We have a similar concept in the downstream Swift fork and this has
proven to be extremely valuable. This is especially true on macOS where
system log messages are automatically captured as part of a sysdiagnose.
2024-10-10 08:47:30 -07:00

4 lines
148 B
Plaintext

RUN: %lldb -o 'log list' -o 'log disable system' 2>&1 | FileCheck %s
CHECK-NOT: Logging categories for 'system'
CHECK: Invalid log channel 'system'