Exemplo n.º 1
0
 public override void Execute(object parameter)
 {
    MaxscriptListenerLogger logger = new MaxscriptListenerLogger("Outliner");
    logger.Debug("test");
    logger.Info("some information goes here");
    logger.Warning("this is your last warning!");
    logger.Error("Oh noeesss!");
 }
Exemplo n.º 2
0
   private ITextLogger CreateLog()
   {
      MappedLogger logger = new MappedLogger();

      ITextLogger fileLogger = new FileLogger(OutlinerPaths.LogFile);
      logger.AddLogger(fileLogger);

      if (Configuration == null || Configuration.Core == null || Configuration.Core.WriteLogToMxsListener)
      {
         ITextLogger mxsLogger = new MaxscriptListenerLogger("Outliner");
         logger.AddLogger(mxsLogger);
      }

      logger.Info("Start logging");
      logger.HorizontalRule('-');

      return logger;
   }