Hitachi Vantara Pentaho Community Forums
Results 1 to 9 of 9

Thread: PDI 5.4 kitchen.bat to overwrite log file instead of appending it.

  1. #1

    Default PDI 5.4 kitchen.bat to overwrite log file instead of appending it.

    Hi

    We have been running 4.4.2 for a long time and now upgraded to 5.4. We use windows scheduler to run our jobs and found that when -log is used to specify log file name in command line is appending the log info instead of overwriting the log file for each run.

    Is this normal? How do I switch it back if it's possible?

    Thanks

  2. #2

    Default

    Nobody can help?

  3. #3

    Default

    This forum is really getting dead.

  4. #4
    Join Date
    Aug 2011
    Posts
    360

    Default

    I dont know how to replace the file, but i would rather add a timestamp at the end of file so you have
    trace of each run. Then you can do some archiving batch like keeping only last month logs file.

  5. #5

    Default

    Thank you for trying, but I only need 1 log per main job. That was the functionality before and now it changed. It would be nice to have all log4j capabilities including defined patterns.

  6. #6
    Join Date
    Apr 2008
    Posts
    4,696

    Default

    Quote Originally Posted by lgrinberg View Post
    It would be nice to have all log4j capabilities including defined patterns.
    So, why not write an updated log4j.xml file?

  7. #7

    Default

    Where is it? I could find it.

  8. #8

    Default

    Should I create xml file and just drop it into log4j plugin folder?

    Thanks

  9. #9
    Join Date
    Apr 2008
    Posts
    4,696

    Default

    I can't remember which JAR you can find it in, but yes, you should be able to just place it in the plugin folder.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.