ceki 2002/10/23 05:01:00 Added: examples/jmx T.java Log: Moved T.java to a less intrisuve place. Revision Changes Path 1.1 jakarta-log4j/examples/jmx/T.java Index: T.java =================================================================== package examples.jmx; import org.apache.log4j.jmx.Agent; import org.apache.log4j.Category; import org.apache.log4j.BasicConfigurator; import org.apache.log4j.*; public class T { public static void main(String[] args) { Category cat = Category.getInstance(T.class); Layout layout = new PatternLayout("%r %p [%t] %c - %m%n"); ConsoleAppender consoleAppender = new ConsoleAppender(layout); consoleAppender.setName("console"); BasicConfigurator.configure(consoleAppender); Agent agent = new Agent(); agent.start(); } }
-- To unsubscribe, e-mail: <mailto:log4j-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:log4j-dev-help@;jakarta.apache.org>