示例#1
0
 public static ILogger GetLogger(LogType LogType, string Parameter = null)
 {
     ILogger logger;
     switch ( LogType ) {
         case LogType.Console:
             logger = new ConsoleLogger();
             break;
         case LogType.File:
             logger = new FileLogger( Parameter );
             break;
         default:
             logger = new NullLogger();
             break;
     }
     return logger;
 }