Uploaded image for project: 'YADE - Yet Another Data Exchange Tool'
  1. YADE - Yet Another Data Exchange Tool
  2. YADE-363

The default path of the YADE report logger considers multiple users

    XMLWordPrintable

Details

    • Fix
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • 1.10
    • YADE Client
    • None
    • Unix

    Description

      Current Situation

      A default for the YADE report logger (option log_filename) is defined in the ./bin/log4j.properties

      # Configuration of JadeHTMLReportLog
      log4j.appender.JadeReportLogHTML.File=${java.io.tmpdir}/Jade-client.html
      
      # Configuration of JadeReportLog
      log4j.appender.JadeReportLog.File=${java.io.tmpdir}/Jade-client.log
      

      Problem on Unix

      • If you use two YADE Clients with different users then both tries to write into the same log file where the second user doesn't have write permissions.

      Desired Behavior

      The log4j.properties considers the users too so far the logs are written in different subdirectories:

      # Configuration of JadeHTMLReportLog
      log4j.appender.JadeReportLogHTML.File=${java.io.tmpdir}/${user.name}/jade-client.html
      
      # Configuration of JadeReportLog
      log4j.appender.JadeReportLog.File=${java.io.tmpdir}/${user.name}/jade-client.log
      

      Attachments

        Activity

          People

            oh Oliver Haufe
            oh Oliver Haufe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified