JEP 158: Unified JVM Logging (original) (raw)
Marcus Larsson marcus.larsson at oracle.com
Mon Oct 26 09:56:36 UTC 2015
- Previous message: JEP 158: Unified JVM Logging
- Next message: RFR: JDK-8140556: Add force rotation option to VM.log jcmd
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
Sorry for my late reply.
I think being able to force rotation via jcmd seems like a good feature. Files are currently opened in append mode so it should already be possible to use external log rotation tools by copying and truncating the files. Still I think it would be nice to provide the jcmd for rotation as well.
I can see some small issues with the implementation, but we can deal with that during the review.
Thanks, Marcus
On 2015-10-26 00:26, Yasumasa Suenaga wrote:
Hi all,
Have you ever seen my change? I (and my customers) need log rotation function via external tool. I want to merge it by Feature Complete. Thanks, Yasumasa 2015/10/16 22:55 "Yasumasa Suenaga" <yasuenag at gmail.com>:
Hi all,
I contributed JDK-7090324: gclog rotation via external tool to be synchronized with logrotated tool on Linux. I think JEP 158 is in progress. However, this JEP does not contain log rotation via external tool in the spec. I want to rotate logs via jcmd in this JEP. I've updated a patch for it: http://cr.openjdk.java.net/~ysuenaga/jvmlogging-logrotate/ This patch provides new option "rotate" in VM.log command. If this change can be accepted, I will file it to JBS and send RFR.
Thanks, Yasumasa
- Previous message: JEP 158: Unified JVM Logging
- Next message: RFR: JDK-8140556: Add force rotation option to VM.log jcmd
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]