Prepared statement to SQL

Input

You can enter many log formats. The util looks for the "Parameters" keyword and the sql statement (select,insert,update,delete) to identify the query/parameters. it will stop either an eol, ';' or at '['

2015-04-22 09:03:34,904 DEBUG          # - ==>  Preparing: select * from user WHERE ( name = ? )  [anything else]
2015-04-22 09:03:34,904 DEBUG          # - ==> Parameters: loginname(String) [whatever ]

Output