Adding support for String.format type log parameters (%s, %d, etc.)
Moving message null check to avoid NPE in case a parameter is added to a "null" log
Added unit tests for the scenarios above