Cannot switch log level to off?

What do I miss here?

root@MacBook-Pro /tmp # sw_vers
ProductName:		macOS
ProductVersion:		13.6.1
BuildVersion:		22G313
root@MacBook-Pro /tmp # log config --mode "level: off"
root@MacBook-Pro /tmp # log config --status           
System mode = INFO
root@MacBook-Pro /tmp # log config --mode "level: debug"
root@MacBook-Pro /tmp # log config --status             
System mode = DEBUG
root@MacBook-Pro /tmp # log config --mode "level: off"  
root@MacBook-Pro /tmp # log config --status           
System mode = DEBUG

AFAIK the off level only works if you target a specific process or subsystem. You can’t turn the log off globally.

Having said that, you should definitely file a bug about this. If an option doesn’t work, it shouldn’t be silently accepted. Notably, if you do the same thing for the persist key you get an explanatory error:

% sudo log config --mode "persist:off"          
log: Ignoring some flags 0x410000 because they are process/subsystem only

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

FB13562748

(Sorry for the delay, have been sorta busy lately.)

Cannot switch log level to off?
 
 
Q