Fixed logging setup