Toggle navigation
Home
org.infinispan.util.logging.Log to org.jboss.logging.Logger
No. of Instances - 2
No. of Commits - 2
No. of Projects - {'infinispan'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Internal -> External
Mapping:
Update String Literal
"%s [%s] \"%s %s\" %s %d %d %d ms"
to
"%s"
Update argument list (Method invocation)
tracef
to
tracef
Add or Remove Method invocation
promise.addListener(f -> { long ms; if (startTime == null) { ms=-1; } else { ms=ChronoUnit.MILLIS.between(startTime,LocalDateTime.now()); } log.tracef("%s [%s] \"%s %s\" \"%s\" %s %d %d %d ms",remoteAddress,checkForNull(startTime),checkForNull(op),checkForNull(cacheName),status,checkForNull(key),bytesRead,bytesWritten,ms); } )
to
promise.addListener(f -> { long duration; if (startTime == null) { duration=-1; } else { duration=ChronoUnit.MILLIS.between(startTime,ZonedDateTime.now()); } MDC.clear(); MDC.put("address",remoteAddress); MDC.put("user",checkForNull(who)); MDC.put("method",checkForNull(op)); MDC.put("protocol",checkForNull(version)); MDC.put("status",checkForNull(status)); MDC.put("responseSize",responseSize); MDC.put("requestSize",requestSize); MDC.put("duration",duration); log.tracef("/%s/%s",checkForNull(cacheName),checkForNull(key)); } )