Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8227567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:10:06+00:00 2026-06-07T16:10:06+00:00

I am trying to use variable substitution for the scanPeriod property such that i

  • 0

I am trying to use variable substitution for the scanPeriod property such that i can have multiple environment files.

It seems like Logback is unable to recognize variable substitution for certain properties.

For example the scanPeriod property:

Logback configuration:

<configuration scan="${scan:-true}" scanPeriod="${scan-interval:-10 minutes}">

Specified to take default value of 10 minutes of logback property is not defined.

Logback properties:

scan=true
scan-interval=30 seconds

This property should override the default configuration of 10 minutes.

Logback error:

java.lang.IllegalArgumentException: String value [${scan-interval:-10 minutes}] is not in the expected format.

According to the Duration API, the duration format is correct.

This is using:

  • slf4j 1.6.2
  • logback classis 0.9.30
  • logback core 0.9.30

EDIT: Filed a Jira report for this – http://jira.qos.ch/browse/LBCLASSIC-307

UPDATE:
28 Dec 2011 This is marked as a Major, and looked at by Ceki Gulcu. 😀

UPDATE:
12 Jun 2012 Still no updates. Left comment in JIRA.

UPDATE:
12 July 2012 Accepted as a valid bug. To fix in 1.0.7

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T16:10:08+00:00Added an answer on June 7, 2026 at 4:10 pm

    http://jira.qos.ch/browse/LOGBACK-396

    Accepted as a valid bug and to be fixed in 1.0.7

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use my variable in all files of my program. this is
I'm trying to use WolframAlpha to solve for a variable. I have u(k, r)
I'm trying to create a release script that can be deployed on multiple databases,
I am trying to use session variable( $_SESSION['asc_id'] , which holds some value like
I am actually trying to use a variable that is initialized in a header
I'm using WP-property (a wordpress plugin) and am trying to use a variable as
I am trying to use a variable that has xpath in for-each. But it
I'm trying to use a variable as a command's parameter but can't quite figure
I'm trying to use a variable that is simply a list of a list
I am trying to use a variable to insert into multiple tables. When I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.