Fixed logging setup method