Menu

#31 loggers not working correctly in admin

open
nobody
3
2009-09-15
2009-09-15
Brian Shin
No

If a succeedednodewriter logeventlistener is added to a pipeline in open migrate administrator, the succeedednodewriter log file is not created when the migration is run. Only a log file named like "log_2009-09-15_15.29.27.csv" is created. Even when running an OMA configured migration from the command line only a completednodewriter log file will be created. We need to figure out why oma can't produce a succeedednodewriter log file with attributes.

Discussion

  • Brian Shin

    Brian Shin - 2009-09-15
    • summary: loggers not working correclty in admin --> loggers not working correctly in admin
     
  • Brian Shin

    Brian Shin - 2009-09-15

    It looks like the logger is being hardcoded in RunMigrationController.java

    Properties overrides = new Properties();
    overrides.put("CompletedNodeWriter.fileNamePrefix", "log_");
    overrides.put("CompletedNodeWriter.fileNameSuffix", logName);
    overrides.put("CompletedNodeWriter.folderPath", saveDirectory + "migrations/"+migration+"/");
    overrides.put("CompletedNodeWriter.flushBuffer", "1");
    overrides.put("AttributeLister.addNodeAttrsToList", "false");
    overrides.put("PropertyPlaceholders.location", "file:" + saveDirectory + "migrations/"+migration+"/"+placeholdersFile);
    overrides.put("MigrationPipeline.batchId", new SimpleDateFormat("yyyy-MM-dd_HH.mm.ss").format(new Date()));

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.