Skip to content

Commit

Permalink
Log helper not setting logger-name on LogRecord, fixes #117
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Apr 24, 2017
1 parent c0ce9c5 commit 8425e63
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion terminal/src/main/java/org/jline/utils/Log.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ static void log(final Level level, final Object... messages) {
static void logr(final Level level, final Supplier<LogRecord> record) {
Logger logger = Logger.getLogger("org.jline");
if (logger.isLoggable(level)) {
logger.log(record.get());
// inform record of the logger-name
LogRecord tmp = record.get();
tmp.setLoggerName(logger.getName());
logger.log(tmp);
}
}

Expand Down

1 comment on commit 8425e63

@jdillon
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx

Please # to comment.