Skip to Content

Hybris HMC error logging

We are using hybris 6.0 version.. There is a requirement to capture the logs whenever there is a invalid access happened to hmc/backoffice... Now we are getting the error only in hmc/backoffice login page. We need that to be logged in the console log.. Can you please tell us how to do this one?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Nov 08, 2019 at 11:34 PM

    Hi Ranjithraja,

    We would have to customize the spring security form by adding a AuthenticationFaliureHandler.

    Implement a new loginAuthenticationFaliureHandler by extending SimpleUrlAuthenticationFailureHandler, and overriding method onAuthenticationFailure(), to log what ever you want to log, in case you want to just log what spring security logs, I think you should be able to get it done just by enabling the logs for package

    <bean id="loginAuthenticationFailureHandler" class="" />
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.