Added logging capabilities

Should obviously have been done *before* the project went live