Package org.apache.log4j

Examples of org.apache.log4j.TTCCLayout


    } // __________________________________

    public static Logger getDefaultLogger (Class p_oCls)
    {
  Logger oRet = Logger.getLogger(p_oCls.getName());
  Appender oApp = new ConsoleAppender(new TTCCLayout("ISO8601"));
  oRet.addAppender(oApp);
  return oRet;
    } // __________________________________
View Full Code Here


    Layout layout = null;
       
    if(layoutType.equals("simple"))
      layout = new SimpleLayout();
    else if(layoutType.equals("ttcc")) {
      layout = new TTCCLayout(AbsoluteTimeDateFormat.DATE_AND_TIME_DATE_FORMAT);
    }
    else
      Usage("Wrong layoutType [" + layoutType +"].");

View Full Code Here

    Layout layout = null;
       
    if(layoutType.equals("simple"))
      layout = new SimpleLayout();
    else if(layoutType.equals("ttcc")) {
      layout = new TTCCLayout(AbsoluteTimeDateFormat.DATE_AND_TIME_DATE_FORMAT);
    }
    else
      Usage("Wrong layoutType [" + layoutType +"].");

View Full Code Here

  public NTEventLogAppender(String server, String source, Layout layout) {
    if (source == null) {
      source = "Log4j";
    }
    if (layout == null) {
      this.layout = new TTCCLayout();
    } else {
      this.layout = layout;
    }

    try {
View Full Code Here

        SINGLE,
        EXACT_LOG
    }

    public static void main(final String[] args) throws Exception {
        final TTCCLayout layout = new TTCCLayout();
        layout.setThreadPrinting(false);
        layout.setCategoryPrefixing(false);
        layout.setContextPrinting(false);
        logger.addAppender(new ConsoleAppender(layout));

        final Operation op = Operation.valueOf(args[0]);

        switch ( op ) {
View Full Code Here

    super();

    sXMLDatabase = arg0;

    logger = Logger.getLogger("sim104.Scada");
    logger.addAppender(new ConsoleAppender(new TTCCLayout()));

    //TODO: Bajar nivel a INFO cuando este OK
    logger.setLevel(Level.DEBUG);

    logger.info("*Constructor Scada*");
 
View Full Code Here

    sPort = arg3;
    sSID = arg4;
    sRemota = arg5;

    logger = Logger.getLogger("sim104.Rtutoxml");
    logger.addAppender(new ConsoleAppender(new TTCCLayout()));
    logger.setLevel(Level.INFO);

    logger.info("*Constructor*");
  }
 
View Full Code Here


      try {

          logger = Logger.getLogger("sim104.ScadaDataBase");
        logger.addAppender(new ConsoleAppender(new TTCCLayout()));

        //TODO: Bajar nivel a INFO cuando este OK
        logger.setLevel(Level.DEBUG);

        logger.info("*Constructor ScadaDataBase*");
 
View Full Code Here

    super();

    sXMLDatabase = arg0;

    logger = Logger.getLogger("sim104.RTU");
    logger.addAppender(new ConsoleAppender(new TTCCLayout()));

    //TODO: Bajar nivel a INFO cuando este OK
    logger.setLevel(Level.DEBUG);

    logger.info("*Constructor RTU*");
 
View Full Code Here

        } else {
            File testSuiteDir = new File(logDir, testCase.getTestClass().getName());
            testCaseDir = new File(testSuiteDir, testCase.getId());
            logs = new LinkedList<OutputStream>();
            sequence = 1;
            appender = new WriterAppender(new TTCCLayout(), createLog("debug"));
            Logger.getRootLogger().addAppender(appender);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.log4j.TTCCLayout

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.