We have a console application name JetIDR. Where we are using log4net for logging log . THis application are currently creating 2 log file JetIDR-INFO.LOG and JetIDR-Debug.LOG .We want to enhance out application to support flexibility on creating log file as below.
- Command line parameter should be named as
-log
- Valid parameter for
-loglevel
are 1 and 2 only - When parameter 1 is used with
-loglevel
JetIDR-INFO.LOG file should get created - When parameter 2 is used with
-loglevel
then JetIDR-INFO.LOG & JetIDR-DEBUG.LOG file should get created
We need to do it in C#.