Use a connection for the log file and use an external config file or SQL Agent job property to override the connection properties to match whatever environment the package is in. No need to hard code that in the package at all.
If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.