Added basic logging capabilities (file + stdout)