Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native build error fileNamePattern Logback #59

Open
rchemali opened this issue Apr 7, 2022 · 0 comments
Open

Native build error fileNamePattern Logback #59

rchemali opened this issue Apr 7, 2022 · 0 comments

Comments

@rchemali
Copy link

rchemali commented Apr 7, 2022

Hello ,

When i try to build my quarkus application with native mode i have this error ( on jvm mode it's work fine )

java.lang.IllegalStateException: FileNamePattern [/tmp/project-thm/thm-requests.%i.log.zip] does not contain a valid IntegerToken

My logback appender :

   <appender name="RequestLogger" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <File>${LOG_PATH}/thm-requests.log</File>
        <encoder>
            <pattern>%d{"yyyy-MM-dd HH:mm:ss,SSS"};%X{correlationId};%m%n</pattern>
        </encoder>
        <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
            <fileNamePattern>${LOG_PATH}/thm-requests.%i.log.zip</fileNamePattern>
            <maxIndex>20</maxIndex>
        </rollingPolicy>
        <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
            <maxFileSize>5MB</maxFileSize>
        </triggeringPolicy>
    </appender>

Any idea to solve this problem ?
Thanks

@rchemali rchemali changed the title Native build error on fileNamePattern Logback Native build error fileNamePattern Logback Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant