Package org.tmatesoft.hg.internal

Examples of org.tmatesoft.hg.internal.StreamLogFacility


    });
    System.out.println();
  }
 
  private void testConsoleLog() {
    LogFacility fc = new StreamLogFacility(Debug, true, System.out);
    System.out.printf("isDebug: %s, isInfo:%s\n", fc.isDebug(), fc.getLevel() == Info);
    fc.dump(getClass(), Debug, "%d", 1);
    fc.dump(getClass(), Info, "%d\n", 2);
    fc.dump(getClass(), Warn, "%d\n", 3);
    fc.dump(getClass(), Error, "%d", 4);
    Exception ex = new Exception();
    fc.dump(getClass(), Debug, ex, "message");
    fc.dump(getClass(), Info, ex, null);
    fc.dump(getClass(), Warn, ex, null);
    fc.dump(getClass(), Error, ex, "message");
  }
View Full Code Here


      }
      public void remove() {
        throw new UnsupportedOperationException();
      }
    };
    FileUtils fu = new FileUtils(new StreamLogFacility(Debug, true, System.err), RepoUtils.class);
    String srcPrefix = srcDir.getAbsolutePath();
    while (it.hasNext()) {
      File next = it.next();
      assert next.getAbsolutePath().startsWith(srcPrefix);
      String relPath = next.getAbsolutePath().substring(srcPrefix.length());
View Full Code Here

TOP

Related Classes of org.tmatesoft.hg.internal.StreamLogFacility

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.