Created logging framework.
Use logger.write to write to console, 1 being info, 2 being a warning, and 3 being an error.