Skip to content

File inclusion support #508

Open
Open
@mecan-soonee

Description

@mecan-soonee

Describe the problem you'd like to have solved

Any plan to add in the file inclusion feature like what logback-spring.xml does?

I would like to include a common reusable appender XML file in to other projects's logback-access-spring.xml.

Describe the solution you'd like

For example:
common-console-appender.xml:

<included>
    <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
            <pattern>%date{"yyyy-MM-dd HH:mm:ss.SSS", Europe/Rome} [%mdc{id}] [%-11thread] %-5level %logger{36} - %msg%n</pattern>
        </encoder>
    </appender>
</included>

logback-access-spring.xml:

<?xml version="1.0" encoding="UTF-8"?>

<configuration>
    <include resource="common-console-appender.xml"/>

    <root level="debug">
        <appender-ref ref="CONSOLE"/>
    </root>
</configuration>   

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions