Removed query if a certain log-level is enabled as log4j2 does this
internally. Changed log-messages to apply to the recommended method of
using placeholder in the log-string and append values for those
placeholder