Is it possible the have different EPiServerLog.config for every DXP enviroment? I mean integration, preprod and Prod...
How can I do that?
Sure you can transform that config file. But you should generally not use log4net in Episerver DXP (see Logging).
If you always log to Episerver's logging abstraction, then Episerver will write to log4net locally. But for Integration, Preproduction and Production it will disable log4net and instead use .Net Diagnostics trace and Azure Application Insights.
Thanks @Stefan for your response.
The thing is that we are using a centralize log server that use log4net, the log server is SEQ and I just need to add a new appender in the current EPiServerLog.config and it will add events to the log server.
Then you can either:
I would probably opt for number 2. But either way, you will need to ask Episerver Support to change the trace logger factory type (in DXP) to the type you end up using.