Re: [slf4j-user] Displaying logger name in log
Thanks Chris. I will try this. On Wed, Nov 9, 2022 at 10:29 PM Chris Pratt wrote: > I believe you can use %c in your logger pattern to output the logger > name. Check out https://logback.qos.ch/manual/layouts.html#conversionWord > for more information. > (*Chris*) > > On Wed, Nov 9, 2022 at 4:56 AM Debraj Manna > wrote: > >> I am using logback with SLF4J. Can someone let me know how can I also >> display the logger name along with the log message? >> ___ >> slf4j-user mailing list >> slf4j-user@qos.ch >> https://mailman.qos.ch/cgi-bin/mailman/listinfo/slf4j-user > > ___ > slf4j-user mailing list > slf4j-user@qos.ch > https://mailman.qos.ch/cgi-bin/mailman/listinfo/slf4j-user ___ slf4j-user mailing list slf4j-user@qos.ch https://mailman.qos.ch/cgi-bin/mailman/listinfo/slf4j-user
Re: [slf4j-user] Displaying logger name in log
I missed adding the versions in my last email. - logback - 1.2.3 - slf4j - 1.7.30 On Wed, Nov 9, 2022 at 6:26 PM Debraj Manna wrote: > I am using logback with SLF4J. Can someone let me know how can I also > display the logger name along with the log message? > ___ slf4j-user mailing list slf4j-user@qos.ch https://mailman.qos.ch/cgi-bin/mailman/listinfo/slf4j-user
Re: [slf4j-user] Displaying logger name in log
I believe you can use %c in your logger pattern to output the logger name. Check out https://logback.qos.ch/manual/layouts.html#conversionWord for more information. (*Chris*) On Wed, Nov 9, 2022 at 4:56 AM Debraj Manna wrote: > I am using logback with SLF4J. Can someone let me know how can I also > display the logger name along with the log message? > ___ > slf4j-user mailing list > slf4j-user@qos.ch > https://mailman.qos.ch/cgi-bin/mailman/listinfo/slf4j-user ___ slf4j-user mailing list slf4j-user@qos.ch https://mailman.qos.ch/cgi-bin/mailman/listinfo/slf4j-user