Log and Collect (in GlassFish 3.1)
By alexismp on Jan 23, 2011
Naman had two blog entries which haven't been yet highlighted here. The first one is from December and covers "Configuring Log4J for use in GlassFish 3.1" (the tricky part is where
Whether you use log4j, java.util.logging or sl4j, you can use the GlassFish Log Viewer accessible from the Web Console, but starting with 3.1, Naman shows how you'll be able to use
This new CLI command is fairly straightforward with the ability to select an instance, a full cluster and provide an output file name :
asadmin collect-log-files [--help] [--target target] --outputfilepath pathname
This returns ZIPped log archives named target_yyyy-mm-dd_hh-min-sec.zip (one file for an entire cluster).