Closed glassfishrobot closed 3 years ago
@glassfishrobot Commented Was assigned to michael.y.chen
@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-20447
@glassfishrobot Commented Reported by emailnbw
This issue has been marked as inactive and old and will be closed in 7 days if there is no further activity. If you want the issue to remain open please add a comment
This issue has been marked as inactive and old and will be closed in 7 days if there is no further activity. If you want the issue to remain open please add a comment
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.
Environment
Windows, JDK 1.7, JavaEE6, Glassfish 3.1.2 b23
Affected Versions
[3.1.2_dev]