Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
gradle/wrapper
src
README.md
build.gradle
gradlew
gradlew.bat

README.md

Custom logger factory

Have you ever copy/pasted a class - and then forgot to change the class passed to the logger instance?

This example shows, using SLF4J/Logback, how you can create a custom LoggerFactory that automatically infers the logger name:

private static final Logger LOG = MyLoggerFactory.getLogger();

Notice how there is no argument to the method.

You can’t perform that action at this time.