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

♻️ change message pattern from text to json on logback #345

Open
geoje opened this issue Sep 2, 2024 · 1 comment
Open

♻️ change message pattern from text to json on logback #345

geoje opened this issue Sep 2, 2024 · 1 comment
Assignees
Labels
BE Backend

Comments

@geoje
Copy link
Contributor

geoje commented Sep 2, 2024

  • below is previous message pattern on logback
            <message>
                <pattern>
                    {
                    "level":"%level",
                    "class":"%logger{36}",
                    "thread":"%thread",
                    "message": "%replace(%replace(%message){"\\","\\\\"}){"\"","\\\""}"
                    }
                </pattern>
            </message>
<appender name="LOKI" class="com.github.loki4j.logback.Loki4jAppender">
    <format>
        ...
        <message class="com.github.loki4j.logback.JsonLayout" />
    </format>
    ...
</appender>
@geoje geoje added the BE Backend label Sep 2, 2024
@geoje geoje self-assigned this Sep 2, 2024
Copy link

github-actions bot commented Sep 2, 2024

Branch be/feat/345 created!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE Backend
Projects
Status: No status
Development

No branches or pull requests

1 participant