Problem with log output settings in ddlog4j2.xml file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • jishit
    Member
    • Nov 2018
    • 5

    Problem with log output settings in ddlog4j2.xml file

    Hi guys,

    I'm facing a problem with the log output configured in the ddlog4j2.xml file is not working properly.
    I have set the log rotate function to create 10 files with a file size of 10MB but it is not working and more than 10 files are being created.
    Let me know if there is a wrong in the description of the attached file.

    Regards,

    ddlog4j2_xml.txt
    Attached Files
  • tuan1
    Hot Shot
    .
    • Jul 2016
    • 19

    #2
    There is some problem with configuration file, can you please help to check if the format is set correctly?

    Comment

    • wilsonyu
      Hot Shot
      .
      • Sep 2011
      • 24

      #3
      This is purely a log4j2 feature. I don't have any experience with it. You may want to look up some information in in link:
      java - How does Log4j2 DefaultRolloverStrategy's max attribute really work? - Stack Overflow

      Comment

      • jishit
        Member
        • Nov 2018
        • 5

        #4
        Willson,

        Thank you for your information.
        I'll check.


        Hi tuan1
        How can I determine if the format is correct?
        Last edited by jishit; 01-21-2025, 05:43 PM.

        Comment

        • tuan1
          Hot Shot
          .
          • Jul 2016
          • 19

          #5
          As you mentioned: "In general, we recognize the extra “>” at the end of line 41 as a syntax error. "
          can you please remove this syntax and restart the application server

          Comment

          • jishit
            Member
            • Nov 2018
            • 5

            #6
            Hi tuan1,

            Thank you for your advice, I was wondering about the “>>” too.
            I will try to implement it.

            Thanks,

            Comment

            Loading