Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
removed extra protected
improved extension signature
  • Loading branch information
gregw committed Nov 17, 2016
1 parent df8944d commit 6c704d7
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public synchronized void publish(LogRecord record) {
}
}

protected LogEntry entryFor(LogRecord record) {
private LogEntry entryFor(LogRecord record) {
String payload;
try {
payload = getFormatter().format(record);
Expand All @@ -307,7 +307,12 @@ protected LogEntry entryFor(LogRecord record) {
.addLabel("levelName", level.getName())
.addLabel("levelValue", String.valueOf(level.intValue()))
.setSeverity(severityFor(level));
return buildEntryFor(record, builder);
enhanceLogEntry(builder, record);
return builder.build();
}

protected void enhanceLogEntry(LogEntry.Builder builder, LogRecord record) {
// no-op in this class
}

protected LogEntry buildEntryFor(LogRecord record, LogEntry.Builder builder) {
Expand Down

0 comments on commit 6c704d7

Please sign in to comment.