本文整理了Java中com.obsidiandynamics.zerolog.Zlg.w()
方法的一些代码示例,展示了Zlg.w()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Zlg.w()
方法的具体详情如下:
包路径:com.obsidiandynamics.zerolog.Zlg
类名称:Zlg
方法名:w
暂无
代码示例来源:origin: com.obsidiandynamics.meteor/meteor-core
@Override
public void onException(String summary, Throwable error) {
zlgSupplier.get().w(summary, error);
}
}
代码示例来源:origin: com.obsidiandynamics.blackstrom/blackstrom-core
private void append(Vote vote) {
action.appendVote(vote, (id, x) -> {
if (x != null) zlg.w("Error appending to ledger [message: %s]", z -> z.arg(vote).threw(x));
});
}
代码示例来源:origin: com.obsidiandynamics.meteor/meteor-core
final long safetyMargin = (long) (config.getStreamConfig().getHeapCapacity() * safetyMarginFrac);
final long ffNextReadOffset = headSeq + safetyMargin;
config.getZlg().w("Sequence %,d was stale (head already at %,d), fast-forwarding to %,d",
z -> z.arg(nextReadOffset).arg(headSeq).arg(ffNextReadOffset));
nextReadOffset = ffNextReadOffset;
代码示例来源:origin: com.obsidiandynamics.blackstrom/blackstrom-core
private void decideBallot(PendingBallot ballot) {
zlg.t("Decided ballot for %s: resolution: %s", z -> z.arg(ballot::getProposal).arg(ballot::getResolution));
final Proposal proposal = ballot.getProposal();
final String xid = proposal.getXid();
final Object metadata = metadataEnabled ? new OutcomeMetadata(proposal.getTimestamp()) : null;
final Outcome outcome = new Outcome(xid, ballot.getResolution(), ballot.getAbortReason(), ballot.getResponses(), metadata)
.inResponseTo(proposal).withSource(groupId);
pending.remove(xid);
if (trackingEnabled) {
additions.add(outcome);
}
action.appendOutcome(outcome, (id, x) -> {
if (x == null) {
ballot.getConfirmation().confirm();
} else {
zlg.w("Error appending to ledger [message: %s]", z -> z.arg(outcome).threw(x));
}
});
}
内容来源于网络,如有侵权,请联系作者删除!