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

JSON Access log Logging #353

Open
rajivraghu opened this issue Aug 5, 2023 · 2 comments
Open

JSON Access log Logging #353

rajivraghu opened this issue Aug 5, 2023 · 2 comments
Labels
type:bug A bug report or bug fix.

Comments

@rajivraghu
Copy link

Hello,
I am using implementation group: 'dev.akkinoc.spring.boot', name: 'logback-access-spring-boot-starter', version: '3.0.0'

The below works..

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
            <pattern>common</pattern>
        </encoder>
    </appender>
    <appender-ref ref="console"/>
</configuration>

But the JSON logging is not printing anything in the console..

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
	<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
		<encoder class="net.logstash.logback.encoder.LogstashAccessEncoder" />
	</appender>
	<appender-ref ref="CONSOLE" />
</configuration>

Any tips ?

@rajivraghu rajivraghu added the type:bug A bug report or bug fix. label Aug 5, 2023
@sruffatti
Copy link

Running into the same issue here.

@sruffatti
Copy link

I was able to get JSON logging to work following this closed issue - #37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug A bug report or bug fix.
Projects
None yet
Development

No branches or pull requests

2 participants