@Test public void testSetName() throws Throwable { Logger logger = new Logger(); logger.setName("testLoggerName"); assertEquals("testLoggerName", logger.name, "m_logger.name"); }
public void setName (String name) { this.name = name; NameRegistrar.register (NRPREFIX+name, this); }
Logger implements LogProducer,Configurable { public void setName (String name) { this.name = name; NameRegistrar.register (NRPREFIX+name, this); } }
Logger implements LogProducer,Configurable { public void setName (String name) { this.name = name; NameRegistrar.register (NRPREFIX+name, this); } Logger(); }
Logger implements LogProducer,Configurable { public void setName (String name) { this.name = name; NameRegistrar.register (NRPREFIX+name, this); } Logger(); Configuration getConfiguration(); @Override void setConfiguration(Configuration cfg); void addListener(LogListener l); void removeListener(LogListener l); void removeAllListeners(); static void log(LogEvent evt); void setName(String name); void destroy(); synchronized static Logger getLogger(String name); String getName(); boolean hasListeners(); }
Logger implements LogProducer,Configurable { public void setName (String name) { this.name = name; NameRegistrar.register (NRPREFIX+name, this); } Logger(); Configuration getConfiguration(); @Override void setConfiguration(Configuration cfg); void addListener(LogListener l); void removeListener(LogListener l); void removeAllListeners(); static void log(LogEvent evt); void setName(String name); void destroy(); synchronized static Logger getLogger(String name); String getName(); boolean hasListeners(); static final String NRPREFIX; }