package composition

import com.google.inject.name.Names
import uk.gov.dvla.vehicles.presentation.common
import common.filters.{AccessLoggingConfig, DefaultAccessLoggingConfig}
import com.tzavellas.sse.guice.ScalaModule
import play.api.{Logger, LoggerLike}
import uk.gov.dvla.vehicles.presentation.common.filters.AccessLoggingFilter._

final class LoggerLikeBinding extends ScalaModule {

  def configure() = {
    bind[LoggerLike].annotatedWith(Names.named(AccessLoggerName)).toInstance(Logger("dvla.common.AccessLogger"))
    bind[AccessLoggingConfig].toInstance(new DefaultAccessLoggingConfig())
  }
}

package composition

import com.google.inject.name.Names
import com.tzavellas.sse.guice.ScalaModule
import play.api.{Logger, LoggerLike}
import uk.gov.dvla.vehicles.presentation.common.filters.AccessLoggingFilter._

final class LoggerLikeBinding extends ScalaModule {

  def configure() = bind[LoggerLike].annotatedWith(Names.named(AccessLoggerName)).toInstance(Logger("dvla.common.AccessLogger"))
}
--- 
+++ 
@@ -1,11 +1,16 @@
 package composition
 
 import com.google.inject.name.Names
+import uk.gov.dvla.vehicles.presentation.common
+import common.filters.{AccessLoggingConfig, DefaultAccessLoggingConfig}
 import com.tzavellas.sse.guice.ScalaModule
 import play.api.{Logger, LoggerLike}
 import uk.gov.dvla.vehicles.presentation.common.filters.AccessLoggingFilter._
 
 final class LoggerLikeBinding extends ScalaModule {
 
-  def configure() = bind[LoggerLike].annotatedWith(Names.named(AccessLoggerName)).toInstance(Logger("dvla.common.AccessLogger"))
+  def configure() = {
+    bind[LoggerLike].annotatedWith(Names.named(AccessLoggerName)).toInstance(Logger("dvla.common.AccessLogger"))
+    bind[AccessLoggingConfig].toInstance(new DefaultAccessLoggingConfig())
+  }
 }
Fix the exception cases for the access logging
