Skip to content

Commit

Permalink
Merge pull request #250 from dmlloyd/logmgr-207-2-master
Browse files Browse the repository at this point in the history
[LOGMGR-207] Format steps can only be a part of a multistep formatter
  • Loading branch information
jamezp authored May 10, 2019
2 parents 7b156fb + 41ac366 commit ffdd4f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

import org.jboss.logmanager.ExtLogRecord;

import java.util.logging.Formatter;

/**
* A single format step which handles some part of rendering a log record.
*/
Expand All @@ -43,7 +41,7 @@ public interface FormatStep {
* @param builder the string builder to append to
* @param record the record being rendered
*/
default void render(Formatter formatter, StringBuilder builder, ExtLogRecord record) {
default void render(MultistepFormatter formatter, StringBuilder builder, ExtLogRecord record) {
render(builder, record);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public void render(final StringBuilder builder, final ExtLogRecord record) {
render(null, builder, record);
}

public void render(Formatter formatter, StringBuilder builder, ExtLogRecord record) {
public void render(MultistepFormatter formatter, StringBuilder builder, ExtLogRecord record) {
final int minimumWidth = this.minimumWidth;
final int maximumWidth = this.maximumWidth;
final boolean leftJustify = this.leftJustify;
Expand Down

0 comments on commit ffdd4f6

Please sign in to comment.