1. glassfish
  2. GLASSFISH-20447

Archive log file when domain is stopped


    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.2_b23
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      Windows, JDK 1.7, JavaEE6, Glassfish 3.1.2 b23


      It would be a time saver for my project / team if there was an option for Glassfish to archive logs (into a configurable sub directory scheme) when a domain is stopped.

      For example, my team's current workflow in development and in production (devops) is to stop a Glassfish domain and create a sub directory in $DOMAIN_ROOT/logs named after the day-month-year-incr. For example the first restart of today would mean creating a log directory named 5-1-13-1 and if the domain were restarted again today another directory would be created called 5-1-13-2. After creating the directory we move all the log files that are in the domain_root/logs folder into this sub folder and then start the domain.

      The reason for doing this is starting the domain with 'clean' logs makes it easier to spot new Exceptions and other messages that we are interested in. It also allows us to manage rolled log files etc. better then leaving them all in the logs folder.

      Ideally, we would want the ability to be able to enable/disable these on a per domain basis and specify the location of these sub folders and the ability to do some sort of macro style naming, eg. $DAY-$MONTH-$YEAR-$DAILY_COUNTER where the $DAILY_COUNTER macro would reset at midnight to 0.


        There are no comments yet on this issue.


          • Assignee:
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: