Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

MongoDB Connection Classname is wrong #40

Open
atkawa7 opened this issue Dec 8, 2022 · 0 comments
Open

MongoDB Connection Classname is wrong #40

atkawa7 opened this issue Dec 8, 2022 · 0 comments

Comments

@atkawa7
Copy link

atkawa7 commented Dec 8, 2022

The current configuration provided on the wiki is not correct as the specified class has moved. Use this instead

<configuration debug="true">
    <appender name="MONGO" class="ch.qos.logback.contrib.mongodb.MongoDBAccessEventAppender">
        <encoder>
            <uri>mongodb://root:password@127.0.0.1:27017/local.logs</uri>
        </encoder>
    </appender>

    <root level="INFO">
        <appender-ref ref="MONGO"/>
    </root>
</configuration>

or

<configuration debug="true">
    <appender name="MONGO" class="ch.qos.logback.contrib.mongodb.MongoDBLoggingEventAppender">
        <uri>mongodb://root:rootpassword@127.0.0.1:27017/local.logs</uri>
    </appender>

    <root level="INFO">
        <appender-ref ref="MONGO"/>
    </root>
</configuration>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant