Daniel,
I'm not sure I see the problem this is supposed to solve. And it would make often already long log lines even longer and harder to scan visually since the prefix is no longer meaningful. What is a scenario when you want to use this?
And why add the log level part? The context lines can't be readily tagged with the log level since there can be messages with several different levels within a different context (and they aren't all known when the line is produced). And I think it is too much information to stick all into one line. So I see that we can set it up so that you can get something that looks like WARN level output when running in TERSE. In addition, running things with VERBOSE slows runtimes down rather noticeably, so I'm not sure you would want to do that routinely while only looking at terse messages, for example.
On the implementation side, log messages are already scanned for newlines and indentation prefixes inserted, so adding other prefixes is easy.
On Jul 3, 2012, at 3:51 PM, Javier Velazquez wrote:
>
> I have a simple proposal. write the granularity ad the beginning of each log message. Something like
>
> LOG:TERSE blah blah
>
> Then a couple of "greps" would make going through all the output less painful, wouldn't it?
>
> _______________________________________________
> IMP-dev mailing list
> IMP-dev@salilab.org
> https://salilab.org/mailman/listinfo/imp-dev
_______________________________________________
IMP-dev mailing list
IMP-dev@salilab.org
https://salilab.org/mailman/listinfo/imp-dev