logging: add some logging options and Init()