* +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:
parent
650abe19d6
commit
3951cf4e68
13 changed files with 1420 additions and 80 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
@ -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])
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue