Open dandv opened 6 years ago
@MarkHerhold: does Palin supports hiding the source of the message for individual log calls, rather than for all of them?
@dandv It does not - just all of them.
However, I would like to point out that if you specify your project's root folder option with palin, the paths become very short which may be sufficient for you.
For certain messages, it's not interesting where they originate from (file:line). One example would be startup messages:
Fortunately, though this is undocumented,
.addTransform
also receives the file:line as an object. I've tried adding a transform to suppress the line, but if it returns the empty string, the file:line is still output:Returning a whitespace is better, though because the file:path object is the first passed on to transform functions, this will lead to an extra whitespace in the middle of your output: