gilt / gfc-playframework   0.0.2


A library that contains a bunch of Play Framework utility classes

Scala versions: 2.11

gfc-playframework Build Status Join the chat at

A library that contains a bunch of Play Framework 2.5+ utility classes. Part of the Gilt Foundation Classes.

Getting gfc-playframework

The latest version is 0.0.2, which is built against Scala 2.11.x.

If you're using SBT, add the following line to your build file:

libraryDependencies += "com.gilt" %% "gfc-playframework" % "0.0.2"

For Maven and other build tools, you can visit (This search will also list other available libraries from the gilt fundation classes.)

Contents and Example Usage

Replaces the default Play! Html error responses with JSON responses.


play.http.errorHandler = ""

HTTP filter for logging incoming requests and tagging responses with time taken as well as instance host that processed the request.

import javax.inject.{Inject, Singleton}
import scala.concurrent.ExecutionContext

class LoggingFilter @Inject() (mat: Materializer, ec: ExecutionContext) extends AbstractLoggingFilter()(mat, ec) {
  override protected def IgnoreUserAgents: Seq[String] = Seq("ELB-HealthChecker/1.0") //Ignore AWS ELB


NOTE: Pleasse use semver for tagging/versioning

git tag vX.X.X
git push --tags
sbt publish


Copyright 2014 Gilt Groupe, Inc.

Licensed under the MIT License: