codacy.events.internal.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of events-rabbitmq_2.12 Show documentation
Show all versions of events-rabbitmq_2.12 Show documentation
A library to send events on rabbit-mq
package codacy.events
import akka.actor.ActorSystem
import org.slf4j.{Logger, LoggerFactory}
import shapeless.tag
import shapeless.tag.@@
package object internal {
type EventLogger = @@[Logger, Event]
def EventLogger(logger: Logger): EventLogger =
tag[Event].apply[Logger](logger)
def defaultEventLogger: EventLogger =
tag[Event].apply[Logger](LoggerFactory.getLogger("codacy-events"))
type EventActorSystem = ActorSystem @@ Event
def EventActorSystem(actorSystem: ActorSystem): EventActorSystem = tag[Event][ActorSystem](actorSystem)
}