Project

General

Profile

Actions

Task #12964

closed

logback does not change its configuration at runtime

Added by Andrea Dell'Amico over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
System Application
Target version:
Start date:
Nov 30, 2018
Due date:
% Done:

100%

Estimated time:
Infrastructure:
Development, Pre-Production, Production

Description

It should reload its configuration ad fixed intervals, but it does not.

Actions #1

Updated by Andrea Dell'Amico over 6 years ago

  • Status changed from New to In Progress

It's a bug, introduced in version 1.1.7 and fixed in 1.1.13. The bug tracking is here: https://jira.qos.ch/browse/LOGBACK-1194?jql=text%20~%20%22scanPeriod%22

As a workaround it's possible to specify an explicit interval, eg:

<configuration scan="true" scanPeriod="60 seconds" debug="false">

I tested that configuration successfully on accounting-harvester.d4science.org.

Actions #2

Updated by Andrea Dell'Amico over 6 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

I added scanPeriod="60 seconds" to the logback template in the smartgears playbook.
The change must be provisioned on the servers where the functionality is needed, otherwise it will deployed at the next smartgears upgrade.

Actions #3

Updated by Luca Frosini over 6 years ago

It sounds really good.

Actions #4

Updated by Luca Frosini over 6 years ago

I tested a log level change on accounting-harvester.d4science.org and it worked.

Thanks a lot

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)