I am trying to edit my logging configuration file so that the levels for the logs would be different based on either it is in a development environment or production environment for example
in dev would be
<logger name="1" level="debug"/>
<logger name="2" level="debug"/>
<logger name="3" level="debug"/>
in production the loggers should be
<logger name="1" level="warn"/>
<logger name="2" level="warn"/>
<logger name="3" level="warn"/>
is there a way to do this with an environment variable and condition statement? I want to try to avoid having a log file specific to each environment