1 23 package com.sun.enterprise.server.logging.logviewer.backend; 24 import javax.management.Attribute ; 25 import javax.management.AttributeList ; 26 27 35 public class LogRecordTemplate { 36 private static AttributeList template = 37 new AttributeList ( ); 38 39 private static Attribute templateAttribute; 40 41 static { 42 template.add( new Attribute ( "FIELD0", "Record Number" ) ); 43 template.add( new Attribute ( "FIELD1", "Logged DateTime" ) ); 44 template.add( new Attribute ( "FIELD2", "Logged Level" ) ); 45 template.add( new Attribute ( "FIELD3", "Product Name" ) ); 46 template.add( new Attribute ( "FIELD4", "Logger Name" ) ); 47 template.add( new Attribute ( "FIELD5", "Name Value Pairs" ) ); 48 template.add( new Attribute ( "FIELD6", "Message Id" ) ); 49 template.add( new Attribute ( "FIELD7", "Message" ) ); 50 51 templateAttribute = new Attribute ( "Header", template ); 52 } 53 54 static Attribute getHeader( ) { 55 return templateAttribute; 56 } 57 } 58 | Popular Tags |