+slf,act #21671 allow using Markers with LoggingAdapter (#21707)

* +slf,act #21671 allow using Markers with LoggingAdapter

* +slf,act #21671 allow using Markers with LoggingAdapter

* improve compatibility

* add docs

* address review comments

* actually print the marker
This commit is contained in:
Konrad Malawski 2016-10-27 15:07:59 +02:00 committed by GitHub
parent 650abe19d6
commit 3951cf4e68
13 changed files with 1420 additions and 80 deletions

View file

@ -0,0 +1,15 @@
/*
* Copyright (C) 2016 Lightbend Inc. <http://www.lightbend.com>
*/
package com.lightbend.sslconfig.akka
import javax.net.ssl.{ SSLContext, SSLEngine }
/**
* Gives the chance to configure the SSLContext before it is going to be used.
* The passed in context will be already set in client mode and provided with hostInfo during initialization.
*/
trait SSLEngineConfigurator {
def configure(engine: SSLEngine, sslContext: SSLContext): SSLEngine
}

View file

@ -0,0 +1,12 @@
/*
* Copyright (C) 2016 Lightbend Inc. <http://www.lightbend.com>
*/
package com.lightbend.sslconfig.akka.util
/** INTERNAL API */
final class AkkaLoggerFactory(system: ActorSystem) extends LoggerFactory {
override def apply(clazz: Class[_]): NoDepsLogger = new AkkaLoggerBridge(system.eventStream, clazz)
override def apply(name: String): NoDepsLogger = new AkkaLoggerBridge(system.eventStream, name, classOf[DummyClassForStringSources])
}