Added a logging interface