Examples of log()


Examples of org.eclipse.equinox.log.Logger.log()

      public void setConsoleLog(boolean consoleLog) {
        logWriter.setConsoleLog(consoleLog);
      }

      public void log(FrameworkLogEntry logEntry) {
        logger.log(logEntry, convertLevel(logEntry), logEntry.getMessage(), logEntry.getThrowable());
      }

      public void log(FrameworkEvent frameworkEvent) {
        Bundle b = frameworkEvent.getBundle();
        Throwable t = frameworkEvent.getThrowable();
View Full Code Here

Examples of org.eclipse.jgit.api.Git.log()

            }
            JSONObject branch = children.getJSONObject(i);
            if (commitsSize == 0) {
              newChildren.put(branch);
            } else {
              LogCommand lc = git.log();
              String branchName = branch.getString(ProtocolConstants.KEY_ID);
              ObjectId toObjectId = db.resolve(branchName);
              Ref toRefId = db.getRef(branchName);
              if (toObjectId == null) {
                String msg = NLS.bind("No ref or commit found: {0}", branchName);
View Full Code Here

Examples of org.eclipse.jgit.internal.storage.file.ReflogWriter.log()

    entries.remove(stashRefEntry);
    ObjectId entryId = ObjectId.zeroId();
    try {
      for (int i = entries.size() - 1; i >= 0; i--) {
        ReflogEntry entry = entries.get(i);
        writer.log(stashLockRef, entryId, entry.getNewId(),
            entry.getWho(), entry.getComment());
        entryId = entry.getNewId();
      }
      if (!stashLockFile.renameTo(stashFile)) {
        FileUtils.delete(stashFile);
View Full Code Here

Examples of org.eclipse.jgit.storage.file.RefDirectory.log()

  private void writeReflog(Repository db, ObjectId oldId, ObjectId newId,
      String msg, String refName) throws IOException {
    RefDirectory refs = (RefDirectory) db.getRefDatabase();
    RefDirectoryUpdate update = refs.newUpdate(refName, true);
    update.setNewObjectId(newId);
    refs.log(update, msg, true);
  }
}
View Full Code Here

Examples of org.eclipse.jgit.storage.file.ReflogWriter.log()

    entries.remove(stashRefEntry);
    ObjectId entryId = ObjectId.zeroId();
    try {
      for (int i = entries.size() - 1; i >= 0; i--) {
        ReflogEntry entry = entries.get(i);
        writer.log(stashLockRef, entryId, entry.getNewId(),
            entry.getWho(), entry.getComment());
        entryId = entry.getNewId();
      }
      if (!stashLockFile.renameTo(stashFile)) {
        FileUtils.delete(stashFile);
View Full Code Here

Examples of org.eclipse.osgi.framework.log.FrameworkLog.log()

        FrameworkLogEntry[] logChildren = new FrameworkLogEntry[constraints.size()];
        for (int i = 0; i < logChildren.length; i++)
          logChildren[i] = new FrameworkLogEntry(symbolicName, FrameworkLogEntry.WARNING, 0, MessageHelper.getResolutionFailureMessage((VersionConstraint) constraints.get(i)), 0, null, null);
        rootChildren[rootIndex] = new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, FrameworkLogEntry.WARNING, 0, generalMessage, 0, null, logChildren);
      }
      logService.log(new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, FrameworkLogEntry.WARNING, 0, EclipseAdaptorMsg.ECLIPSE_STARTUP_ROOTS_NOT_RESOLVED, 0, null, rootChildren));
    }

    // There may be some bundles unresolved for other reasons, causing the system to be unresolved
    // log all unresolved constraints now
    ArrayList allChildren = new ArrayList();
View Full Code Here

Examples of org.eclipse.persistence.internal.sessions.AbstractSession.log()

                    DatabaseAccessor accessor = (DatabaseAccessor) query.getAccessor();
                    accessor.releaseStatement(executeStatement, query.getSQLString(), executeCall, session);
                }
            } catch (SQLException exception) {
                // Catch the exception and log a message.
                session.log(SessionLog.WARNING, SessionLog.CONNECTION, "exception_caught_closing_statement", exception);
            }
        }
       
        executeCall = null;
        executeStatement = null;
View Full Code Here

Examples of org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.log()

                if (!wrapped.isEasilyInstantiated()) {
                    if (wrapped.isPessimisticLockingValueHolder()) {
                        if (!unitOfWork.getCommitManager().isActive() && !unitOfWork.wasTransactionBegunPrematurely()) {
                            unitOfWork.beginEarlyTransaction();
                        }
                        unitOfWork.log(SessionLog.FINEST, SessionLog.TRANSACTION, "instantiate_pl_relationship");
                    }
                    if (unitOfWork.getCommitManager().isActive() || unitOfWork.wasTransactionBegunPrematurely()) {
                        // At this point the wrapped valueholder is not triggered,
                        // and we are in transaction.  So just trigger the
                        // UnitOfWork valueholder on the UnitOfWork only.
View Full Code Here

Examples of org.eclipse.persistence.logging.SessionLog.log()

        } catch (Exception e) {
            // Blindly catch exception here as there is no recourse for any specific exception. If
            // we can't load the WAS logger just fall back to using the default SessionLog.
            log = super.getServerLog();
            log.log(SessionLog.FINEST, "Unable to create an instance of " + SERVER_LOG_CLASS
                + ". Falling back to using default logger.", e);
        }
        return log;
    }
View Full Code Here

Examples of org.eclipse.persistence.sessions.server.ClientSession.log()

                // if there is an active txn we must register with it on
                // creation of PC
                transaction.registerUnitOfWorkWithTxn(this.extendedPersistenceContext);
            }
            if (client.shouldLog(SessionLog.FINER, SessionLog.TRANSACTION)) {
                client.log(SessionLog.FINER, SessionLog.TRANSACTION, "acquire_unit_of_work_with_argument", String.valueOf(System.identityHashCode(this.extendedPersistenceContext)));
            }
        }
        if (this.beginEarlyTransaction && txn != null && !this.extendedPersistenceContext.isInTransaction()) {
            // gf3334, force persistence context early transaction
            this.extendedPersistenceContext.beginEarlyTransaction();
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.