Added a basic logging framework.