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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:58:47+00:00 2026-05-27T11:58:47+00:00

I have a logback appender: <appender name=logfile class=ch.qos.logback.core.rolling.RollingFileAppender> <rollingPolicy class=ch.qos.logback.core.rolling.TimeBasedRollingPolicy> <fileNamePattern>/opt/loghome/recon/log.%d{MM-dd-yyyy}.log </fileNamePattern> <maxHistory>30</maxHistory> </rollingPolicy>

  • 0

I have a logback appender:

    <appender name="logfile"
    class="ch.qos.logback.core.rolling.RollingFileAppender">
    <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
        <fileNamePattern>/opt/loghome/recon/log.%d{MM-dd-yyyy}.log          </fileNamePattern>
        <maxHistory>30</maxHistory>
    </rollingPolicy>
    <append>false</append>
    <encoder>
        <pattern>%msg%n</pattern>
    </encoder>
</appender>

I would like to change /opt/loghome/recon/log.%d{MM-dd-yyyy}.log.zip so that the log will be created in src/main/resources in my project. The aim of this is to then have the log on the classpath. Can this be done?

Thanks

  • 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-27T11:58:48+00:00Added an answer on May 27, 2026 at 11:58 am

    I guess you’re using maven.
    Maven builds jars/wars/ears whatever
    The jars don’t contain src/main/resources
    In fact this src/main/resources path doesn’t exist once your project is compiled.
    So I don’t really get this idea to put your logs into src/main/resources.

    I think its much more “healthy” to include your /opt/loghome/recon/ in the classpath when you’re running your project.

    Does it make sense?

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

Sidebar

Related Questions

I have the following logback.xml file: <configuration debug=true> <appender name=STDOUT class=ch.qos.logback.core.ConsoleAppender> <encoder> <pattern>%d{HH:mm:ss.SSS} [%thread]
I'm trying to programmatically configure LogBack's RollingFileAppender ( ch.qos.logback.core.rolling.RollingFileAppender ) and it doesn't seem
I followed these instructions here: http://logback.qos.ch/consolePlugin.html I have the correct and found logback.xml, it
In my logback config file, I have the following appender that work : <appender
I have just started exploring SpringMVC and logback. This is my controller, (the only
I have a problem regarding to logback project. My requirement is I have to
I've read logback's documentation multiple times on the syslog appender. I am under the
I have a class with several methods. I would like each method to output
I have a config file which lists all the configuration details for Logback.xml like
I have a red5 application using java language and I use logback for logging.

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.