1 package org.jerpa.component.logger; 2 3 8 9 import org.jerpa.component.*; 10 import org.jerpa.component.configuration.*; 11 import org.jerpa.util.*; 12 13 public class LoggerComponent extends Component 14 { 15 public LoggerComponent() 16 { 17 setName("Logger Component"); 18 setRole("org.jerpa.component.Logger"); 19 setDesc("This is the basic logger component."); 20 setAuthor("Michael Kleinhenz"); 21 setCopyright("The JERPA Team. This is GNU Software."); 22 setVersion(new Version(0,0,1)); 23 setServiceable(new Boolean (true)); 24 25 configuration.addStringItem(new StringConfigurationItem("logfile","/tmp/logfile")); 26 }; 28 29 public void finalize() 30 { 31 }; 33 34 public Configuration getConfiguration() 35 { 36 return configuration; 37 }; 38 39 public void log(Component logger, String _log) 40 { 41 System.out.println("LOGGER: " + logger.getRole() + ": " + _log); 42 }; 43 }; 44 45 | Popular Tags |