I am aware that you can use the -verbosegc to print information about the GC to the sysout but I don't want that. I want to intercept whenever GC triggers and print information about it to my custom logger, perhaps save last GC timestamp on a internal variable, etc.
Any hope here?