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.13 Show documentation
Show all versions of events-rabbitmq_2.13 Show documentation
A library to send events on rabbit-mq
The newest version!
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)
}