summaryrefslogtreecommitdiffstats
path: root/sangria-log4j/src/main/java
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-10-04 12:32:13 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-10-04 12:32:24 -0400
commit17a7490cabfd4428cfdb5d9106dc076b1dc4b905 (patch)
tree32b4cb8f610da83d349d3030665dccc10c17f740 /sangria-log4j/src/main/java
parent181bf8b43411ff309517ca6ca804fc34dae1e13a (diff)
downloadsangria-17a7490cabfd4428cfdb5d9106dc076b1dc4b905.tar.xz
log4j: Test best practices.
Diffstat (limited to 'sangria-log4j/src/main/java')
-rw-r--r--sangria-log4j/src/main/java/com/tavianator/sangria/log4j/Log4jLoggerProvider.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/sangria-log4j/src/main/java/com/tavianator/sangria/log4j/Log4jLoggerProvider.java b/sangria-log4j/src/main/java/com/tavianator/sangria/log4j/Log4jLoggerProvider.java
index dae2323..34262d7 100644
--- a/sangria-log4j/src/main/java/com/tavianator/sangria/log4j/Log4jLoggerProvider.java
+++ b/sangria-log4j/src/main/java/com/tavianator/sangria/log4j/Log4jLoggerProvider.java
@@ -19,6 +19,7 @@ package com.tavianator.sangria.log4j;
import javax.inject.Singleton;
+import com.google.inject.Inject;
import com.google.inject.spi.InjectionPoint;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -34,6 +35,10 @@ import com.tavianator.sangria.contextual.ContextSensitiveProvider;
*/
@Singleton
class Log4jLoggerProvider implements ContextSensitiveProvider<Logger> {
+ @Inject
+ Log4jLoggerProvider() {
+ }
+
@Override
public Logger getInContext(InjectionPoint injectionPoint) {
return LogManager.getLogger(injectionPoint.getDeclaringType().getRawType());