Skip to content

Update generated Dockerfile to pass in externalized logback.xml in order to override the default logging config. #39

@stevehu

Description

@stevehu

java -jar -Dlogback.configurationFile=/opt/config/logback.xml /opt/rest.jar

Also, if you want the application to scan the config file to reflect the changes, please add scan="true" in configuration attribute.

<configuration scan="true"> 
 ...
 ...
 </configuration> 
By default logback-classic will scan the changes every one minute, but if we want to
 change this then we have to add another attribute scanPeriod with the time interval and the unit as below.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions