Package jmx

Source Code of jmx.T

package jmx;

import org.apache.log4j.jmx.Agent;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.*;

public class T {


  public static void main(String[] args) {
    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();
  }
 
}
TOP

Related Classes of jmx.T

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.