#Spring stealing log messages

5 messages · Page 1 of 1 (latest)

haughty mountain
#

I'm using Java's default logging class, and get this really annoying thing where Spring "steals" my log messages and wraps them in extra information, which I don't want.
How do I disable this?

primal cave
#

The easiest way is to actually use SLF4J, which spring uses, so that your whole system is using a unified logging framework

#

if you're using lombok, you can add @Slf4j to a class to gain access to the standard static log object

valid dock
#

or add an exclusion of org.slf4j:jul-to-slf4j in your pom.xml