Is it possible, for example, to configure different formatting patterns for ERROR as opposed to INFO?

What I mean is that I want ERROR messages in the log to contain lots of extra data, like file and line number, etc. But for INFO messages fewer fields are needed (perhaps just time and message).

Is this configurable?