Alloy connection properties working

<!-- Appender for the AlloyDBConnection logs -->
    <appender name="ALLOYDB_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <file>logs/alloydb-connection.log</file>
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>logs/alloydb-connection.%d{yyyy-MM-dd}.log</fileNamePattern>
            <maxHistory>30</maxHistory> <!-- Keep 30 days of logs -->
        </rollingPolicy>
        <encoder>
            <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
        </encoder>
    </appender>

    <!-- Logger specifically for AlloyDBConnection class -->
    <logger name="classname" level="info" additivity="false">
        <appender-ref ref="ALLOYDB_FILE"/>
    </logger>

@apawar1508 Welcome to the community.

I only see the log property file configuration. Could you please elaborate question?

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.