P
P
P_Alexander2020-03-22 10:27:55
Java
P_Alexander, 2020-03-22 10:27:55

Why doesn't it output logs in the controller when adding Spring Security?

Good afternoon, I added spring security to the project and now I don’t see logs in the controller, I can’t understand what I need to add to the logger settings file, I added spring security, but this did not solve my question, who knows, tell me ...

<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
    <Appenders>
        <!--Console Appender-->
        <Console name="Console" target="SYSTEM_OUT">
            <PatternLayout pattern="%d{yyyy-MMM-dd HH:mm:ss a} [%t] %-5level %logger{36} - %msg%n"/>
        </Console>

    </Appenders>
    <Loggers>

        <Logger name="org.springframework.web" additivity="true">
            <level value="debug"/>
            <AppenderRef ref="Console"/>
        </Logger>

        <Logger name="com.InternationalPassport.businessLayer" additivity="true">
            <level value="debug"/>
            <AppenderRef ref="Console"/>
        </Logger>

        <Logger name="com.InternationalPassport.controller" additivity="true">
            <level value="debug"/>
            <AppenderRef ref="Console"/>
        </Logger>

        <Logger name="org.springframework.security" additivity="true">
            <level value="debug"/>
            <AppenderRef ref="Console"/>
        </Logger>

        <Logger name="org.springframework.security.web" additivity="true">
            <level value="debug"/>
            <AppenderRef ref="Console"/>
        </Logger>

        <Logger name="com.InternationalPassport.springConfigs.WebSecurityConfig" additivity="true">
            <level value="debug"/>
            <AppenderRef ref="Console"/>
        </Logger>

        <Logger name="com.InternationalPassport.security" additivity="true">
            <level value="debug"/>
            <AppenderRef ref="Console"/>
        </Logger>

        <Logger name="" additivity="true">
            <level value="debug"/>
            <AppenderRef ref="Console"/>
        </Logger>


        <Root level="debug">
            <AppenderRef ref="Console"/>
        </Root>
    </Loggers>
</Configuration>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question