[Lldb-commits] [lldb] r236174 - Introduce a NullLog class, which ignores all messages.
jason at molenda.com
Wed Apr 29 23:44:37 PDT 2015
> On Apr 29, 2015, at 7:23 PM, Zachary Turner <zturner at google.com> wrote:
> What do you think about Enrico's suggestion? If there's a way to make this useful for everyone it's certainly better than me doing my own thing in ProcessWindows, but when i look at my code decorated with log statements using the existing paradigm, it's significantly harder to read than using the NullLog paradigm, so i guess i will still move it to ProcessWindows if that's the only way.
My two cents, I agree with Jim on this, I'd prefer we maintain the current form of logging throughout the codebase.
In the unwinder, I wanted to have a consistent format style for all my logging -- in RegisterContextLLDB all of the logging calls UnwindLogMsg() unconditionally. In that method I check if logging is enabled and add the standard formatting before the msg.
More information about the lldb-commits