Skip to content

Thymeleaf logging not working correctly when setting to DEBUG or TRACE #1481

@woodforda

Description

@woodforda

I think the change for issue #265 has broken Thymeleaf logging when setting to Debug or Trace. Basically setting to debug or trace does not give any output at all. I have copied the logback config into my project and removed the remapper declaration and all works fine.

I'm assuming that in the method below the get is returning null when not one of the explicitly mapped levels and therefore not appending to the log.

protected void append(ILoggingEvent event) {
    Level remappedLevel = this.remapLevels.get(event.getLevel());
    if (remappedLevel != null) {
        AppendableLogger logger = getLogger(this.destinationLogger);
        logger.callAppenders(new RemappedLoggingEvent(event));
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions