Package org.apache.log4j

Examples of org.apache.log4j.HTMLLayout$HTMLPrintWriter


      SyslogAppender appender = new SyslogAppender();
      appender.setSyslogHost("localhost:" + ds.getLocalPort());
      appender.setName("name");
      appender.setHeader(false);
      HTMLLayout pl = new HTMLLayout();
      appender.setLayout(pl);
      appender.activateOptions();

      Logger l = Logger.getRootLogger();
      l.addAppender(appender);
View Full Code Here


    Display.setAppName("kEllyIRC");
    final Display disp = Display.getDefault();
    MainWindow window = null;
   
    try {
      HTMLLayout h = new HTMLLayout();
      h.setTitle(KEllyBot.VERSION+ " Error Log");
      h.setLocationInfo(true);
      BasicConfigurator.configure(new FileAppender(h, "error_log.html",true));
     
      window = new MainWindow(disp);
      window.setBlockOnOpen(true);
      window.open();
View Full Code Here

      SyslogAppender appender = new SyslogAppender();
      appender.setSyslogHost("localhost:" + ds.getLocalPort());
      appender.setName("name");
      appender.setHeader(false);
      HTMLLayout pl = new HTMLLayout();
      appender.setLayout(pl);
      appender.activateOptions();

      Logger l = Logger.getRootLogger();
      l.addAppender(appender);
View Full Code Here

      SyslogAppender appender = new SyslogAppender();
      appender.setSyslogHost("localhost:" + ds.getLocalPort());
      appender.setName("name");
      appender.setHeader(false);
      HTMLLayout pl = new HTMLLayout();
      appender.setLayout(pl);
      appender.activateOptions();

      Logger l = Logger.getRootLogger();
      l.addAppender(appender);
View Full Code Here

    public static void init(String logLoc) {

        logger = Logger.getLogger(Log.class);

        try {
            FileAppender infoFileAppender = new FileAppender(new HTMLLayout(),
                    logLoc + "/index.html");

            FileAppender debugFileAppender = new FileAppender(new HTMLLayout(),
                    logLoc + "/debug.html");

            logger.addAppender(infoFileAppender);
            logger.addAppender(debugFileAppender);
View Full Code Here

TOP

Related Classes of org.apache.log4j.HTMLLayout$HTMLPrintWriter

Copyright © 2018 www.massapicom. 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.