FileDocCategorySizeDatePackage
LogRecordTemplate.javaAPI DocGlassfish v2 API3180Fri May 04 22:35:46 BST 2007com.sun.enterprise.server.logging.logviewer.backend

LogRecordTemplate

public class LogRecordTemplate extends Object
LogRecordTemplate will be the first entry in the results that we return back to the Admin Tool LogViewer Front end. It contains the metadata describing the structure of the results.
AUTHOR:
Hemanth Puttaswamy

Fields Summary
private static AttributeList
template
private static Attribute
templateAttribute
Constructors Summary
Methods Summary
static javax.management.AttributegetHeader()

 

     
        template.add( new Attribute( "FIELD0", "Record Number" ) ); 
        template.add( new Attribute( "FIELD1", "Logged DateTime" ) ); 
        template.add( new Attribute( "FIELD2", "Logged Level" ) ); 
        template.add( new Attribute( "FIELD3", "Product Name" ) ); 
        template.add( new Attribute( "FIELD4", "Logger Name" ) ); 
        template.add( new Attribute( "FIELD5", "Name Value Pairs" ) ); 
        template.add( new Attribute( "FIELD6", "Message Id" ) ); 
        template.add( new Attribute( "FIELD7", "Message" ) );

        templateAttribute = new Attribute( "Header", template );
    
        return templateAttribute;