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 7615985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:46:43+00:00 2026-05-31T02:46:43+00:00

I like LogBack , seriously I do! I configured it in a way that

  • 0

I like LogBack, seriously I do!

I configured it in a way that most of the times produces log files with the following structure:

+ logs
    - latestRun.log
    + rolled
      - logFile_2012-03-09T03.log 
      - logFile_2012-03-09T04.log
      - etc...

The structure above makes me very happy! (Sometimes the content does not but this is another issue)

Occasionally, I end up with files like this though:

+ logs
    - latestRun.log
    - latestRun.log1998071534195169.tmp
    - latestRun.log2016071527094180.tmp
    - etc...
    + rolled
      - logFile_2012-03-09T03.log 
      - logFile_2012-03-09T04.log
      - etc...

Now those .tmp files are a pain in the neck and I really cannot explain why they are generated. The issue seems to be more frequent when I add the .gz in the <fileNamePattern> for compressing the rolled files.

This is how my appender is configured in my logback.xml file:

<property name="LOGS_FOLDER" value="logs/" />

<appender name="ROLLINGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <file>${LOGS_FOLDER}latestRun.log</file>
    <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
        <!-- daily rollover -->
        <fileNamePattern>${LOGS_FOLDER}rolled/logFile_%d{yyyy-MM-dd'T'HH}.log.gz</fileNamePattern>
        <!-- keep 30 days' worth of history -->
        <maxHistory>30</maxHistory>
    </rollingPolicy>

    <encoder>
        <pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</pattern>
    </encoder>
</appender>

The environment is Linux Ubuntu

  • 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-05-31T02:46:44+00:00Added an answer on May 31, 2026 at 2:46 am

    Looks like an incarnation of LBCORE-169 bug. We can only vote and wait…

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

Sidebar

Related Questions

I'd like to define a logback configuration file that will be able to :
Like most apps, mine has a users table that describes the entities that can
I really like Logback's support to log into a DB. However, I'm having trouble
Like many companies that require all access be through stored procedures, we seem to
Like most *nix people, I tend to play with my tools and get them
Like most developers, I'm a business developer, which in essence consists of slapping a
Logback's DBAppender logs all properties in its context and MDC to the database. I
Does anyone know of a log4j or logback class that can redact passwords based
So, I am using Slf4jEventHandler and logback-classic. How do I configure the log levels
How can I change a log file path on the fly in Logback? In

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.