improve logger implementation; fix issue loading resource on Linux when running in prod mode