Package org.exolab.castor.util

Examples of org.exolab.castor.util.Logger


  public static void main( String[] args )
  {
    PrintWriter   writer;
    Test          test;
       
    writer = new Logger( System.out ).setPrefix( "test" );
    try {
      test = new Test( writer );
      test.run( writer );
    } catch ( Exception except ) {
      writer.println( except );
View Full Code Here


        {
            Log.warn ("CastorService no LogFile property specified");
        }
        else
        {
            logger = new Logger (new FileWriter (logfile)).setPrefix(logprefix);
        }

        databasename = props.getProperty (DATABASENAME_PROPERTY);
        if (databasename == null)
        {
View Full Code Here

        {
            Log.warn ("CastorService no LogFile property specified");
        }
        else
        {
            logger = new Logger (new FileWriter (logfile)).setPrefix(logprefix);
        }

        databasename = props.getProperty (DATABASENAME_PROPERTY);
        if (databasename == null)
        {
View Full Code Here

        {
            Log.warn ("CastorService no LogFile property specified");
        }
        else
        {
            logger = new Logger (new FileWriter (logfile)).setPrefix(logprefix);
        }

        databasename = props.getProperty (DATABASENAME_PROPERTY);
        if (databasename == null)
        {
View Full Code Here

   * @see junit.framework.TestCase#setUp()
   */
  protected void setUp() throws Exception {
    super.setUp();
   
    writer = new Logger( System.out ).setPrefix( "test" );
   
    Properties params = new Properties ();
    params.put ("jndiENC", "comp:java/transactionManager");
  }
View Full Code Here

    }

    public void run() {

  try {
      PrintWriter writer = new Logger(System.err).setPrefix("dtxtest");

      DTXEngine engine = new DTXEngine();

      engine.setLogWriter(writer);
View Full Code Here

        {
            Log.warn ("CastorService no LogFile property specified");
        }
        else
        {
            logger = new Logger (new FileWriter (logfile)).setPrefix(logprefix);
        }

        databasename = conf.getString(DATABASENAME_PROPERTY);
        if (databasename == null)
        {
View Full Code Here

TOP

Related Classes of org.exolab.castor.util.Logger

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.