Catering loggint statements to MSSQL.