Logs console information into a database