Added framework logging capability, with support for levels.