initializing global log correctly when using as package