Package org.tmatesoft.hg.util

Examples of org.tmatesoft.hg.util.LogFacility.dump()


  }
 
  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");
View Full Code Here


 
  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);
View Full Code Here

  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);
View Full Code Here

    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

    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

    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");
  }
 
  private void testTreeTraversal() throws Exception {
View Full Code Here

    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");
  }
 
  private void testTreeTraversal() throws Exception {
    File repoRoot = hgRepo.getWorkingDir();
View Full Code Here

    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");
  }
 
  private void testTreeTraversal() throws Exception {
    File repoRoot = hgRepo.getWorkingDir();
    Path.Source pathSrc = new Path.SimpleSource(new PathRewrite.Composite(new RelativePathRewrite(repoRoot), hgRepo.getToRepoPathHelper()));
View Full Code Here

      // file is there only if it's not default queue ('patches') that is active
      if (activeQueueFile.isFile()) {
        ArrayList<String> contents = new ArrayList<String>();
        new LineReader(activeQueueFile, log).read(new LineReader.SimpleLineCollector(), contents);
        if (contents.isEmpty()) {
          log.dump(getClass(), Warn, "File %s with active queue name is empty", activeQueueFile.getName());
          activeQueue = PATCHES_DIR;
          queueLocation = PATCHES_DIR + '/';
        } else {
          activeQueue = contents.get(0);
          queueLocation = PATCHES_DIR + '-' + activeQueue +  '/';
View Full Code Here

        new LineReader(fileStatus, log).read(new LineReader.LineConsumer<List<PatchRecord>>() {
 
          public boolean consume(String line, List<PatchRecord> result) throws IOException {
            int sep = line.indexOf(':');
            if (sep == -1) {
              log.dump(MqManager.class, Warn, "Bad line in %s:%s", fileStatus.getPath(), line);
              return true;
            }
            Nodeid nid = Nodeid.fromAscii(line.substring(0, sep));
            String name = new String(line.substring(sep+1));
            result.add(new PatchRecord(nid, name, patchLocation.path(name)));
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.