Adds basic logging functionality