Package org.apache.log4j.nt

Examples of org.apache.log4j.nt.NTEventLogAppender


    Logger myLogger = Logger.getLogger("Log4JWindowsNTEvent");

    String mySource = "the source";

    // create an NTEventLogAppender
    NTEventLogAppender eventLogAppender = new NTEventLogAppender(mySource,myLayout);
    //create a console appender 
    ConsoleAppender consoleAppender = new ConsoleAppender(myLayout);
   
    // associate the appenders to the logger
    myLogger.addAppender(consoleAppender);
View Full Code Here



  static
  void init() {

    BasicConfigurator.configure(new NTEventLogAppender());
  }
View Full Code Here


  static
  void init() {

    BasicConfigurator.configure(new NTEventLogAppender());
  }
View Full Code Here

 
  static
  void init() {

    BasicConfigurator.configure(new NTEventLogAppender());
  }
View Full Code Here


  static
  void init() {

    BasicConfigurator.configure(new NTEventLogAppender());
  }
View Full Code Here

//  }

  private static void determineIfNTEventLogIsSupported() {
    boolean supported = true;
    try {
      new NTEventLogAppender();
    } catch (Throwable t) {// NOPMD
      supported = false;
    }

    ntEventLogSupported = supported;
View Full Code Here

  }

  private static void determineIfNTEventLogIsSupported() {
    boolean supported = true;
    try {
      new NTEventLogAppender();
    } catch (Throwable t) {// NOPMD
      supported = false;
    }

    ntEventLogSupported = supported;
View Full Code Here


  static
  void init() {

    BasicConfigurator.configure(new NTEventLogAppender());
  }
View Full Code Here

  }

  private static void determineIfNTEventLogIsSupported() {
    boolean supported = true;
    try {
      new NTEventLogAppender();
    } catch (Throwable t) {// NOPMD
      supported = false;
    }

    ntEventLogSupported = supported;
View Full Code Here

TOP

Related Classes of org.apache.log4j.nt.NTEventLogAppender

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.