Added logging features

pub demo includes logging now