Package com.sos.JSHelper.io.Files

Examples of com.sos.JSHelper.io.Files.JSTextFile.WriteLine()


    boolean flgNew = false;
    boolean flgPropFileIsOk = true;

    if (objFile.exists() == false) {
      try {
        objFile.WriteLine("log4j.rootCategory=debug, stdout");
        if (flgUseJobSchedulerLog4JAppender == false) {
          objFile.WriteLine("log4j.appender.stdout=org.apache.log4j.ConsoleAppender");
        }
        else {
          /**
 
View Full Code Here


    if (objFile.exists() == false) {
      try {
        objFile.WriteLine("log4j.rootCategory=debug, stdout");
        if (flgUseJobSchedulerLog4JAppender == false) {
          objFile.WriteLine("log4j.appender.stdout=org.apache.log4j.ConsoleAppender");
        }
        else {
          /**
           * von aussen steuern. bei junit-tests ist der consoleappender richtig, sonst nicht.
           */
 
View Full Code Here

        }
        else {
          /**
           * von aussen steuern. bei junit-tests ist der consoleappender richtig, sonst nicht.
           */
          objFile.WriteLine("log4j.appender.stdout=com.sos.JSHelper.Logging.JobSchedulerLog4JAppender");
        }
        objFile.WriteLine("log4j.appender.stdout.layout=org.apache.log4j.PatternLayout");
        objFile.WriteLine("log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n");
        objFile.close();
        flgNew = true;
View Full Code Here

          /**
           * von aussen steuern. bei junit-tests ist der consoleappender richtig, sonst nicht.
           */
          objFile.WriteLine("log4j.appender.stdout=com.sos.JSHelper.Logging.JobSchedulerLog4JAppender");
        }
        objFile.WriteLine("log4j.appender.stdout.layout=org.apache.log4j.PatternLayout");
        objFile.WriteLine("log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n");
        objFile.close();
        flgNew = true;
      }
      catch (Exception e) {
View Full Code Here

           * von aussen steuern. bei junit-tests ist der consoleappender richtig, sonst nicht.
           */
          objFile.WriteLine("log4j.appender.stdout=com.sos.JSHelper.Logging.JobSchedulerLog4JAppender");
        }
        objFile.WriteLine("log4j.appender.stdout.layout=org.apache.log4j.PatternLayout");
        objFile.WriteLine("log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n");
        objFile.close();
        flgNew = true;
      }
      catch (Exception e) {
        System.err.println(conClassName + ": unable to create the log4j-property-file " + objFile.getAbsolutePath());
View Full Code Here

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.