Package org.tamacat.log.impl

Examples of org.tamacat.log.impl.Log4jLogger.debug()


      out = new ObjectOutputStream(os);
      out.writeObject(logger);
      byte[] serialize = os.toByteArray();
      assertNotNull(serialize);
      //System.out.println(new String(serialize));
      logger.debug("Serialize OK. length=" + serialize.length);
     
      //FileInputStream is = new FileInputStream("logger.ser");
      ByteArrayInputStream is = new ByteArrayInputStream(serialize);
      in = new ObjectInputStream(is);
      Object obj = in.readObject();
View Full Code Here


      Object obj = in.readObject();
      assertNotNull(obj);
      assertEquals(Log4jLogger.class, obj.getClass());
     
      logger = (Log4jLogger)obj;
      logger.debug("Deserialize OK.");
    } catch (Exception e) {
      e.printStackTrace();
      fail();
    } finally {
      IOUtils.close(in);
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.