All Downloads are FREE. Search and download functionalities are using the official Maven repository.

codacy.events.internal.package.scala Maven / Gradle / Ivy

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)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy