Sha256: a4312cff416935fdef20501eee5681d1645f06fe28f49bbb8427d81569420986

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

import com.twitter.admin.config._
import com.twitter.conversions.time._
import com.twitter.logging.config._
import com.twitter.birdname.config._

// production mode.
new BirdNameServiceConfig {
	
  // Add your own config here
  
  // Where your service will be exposed.
  thriftPort = 9999

  // Ostrich http admin port.  Curl this for stats, etc
  admin.httpPort = 9900

  // End user configuration
  
  // Expert-only: Ostrich stats and logger configuration.
  admin.statsNodes = new StatsConfig {
    reporters = new JsonStatsLoggerConfig {
      loggerName = "stats"
      serviceName = "birdname"
    } :: new TimeSeriesCollectorConfig
  }

  loggers =
    new LoggerConfig {
      level = Level.INFO
      handlers = new FileHandlerConfig {
        filename = "/var/log/birdname/production.log"
        roll = Policy.SigHup
      }
    } :: new LoggerConfig {
      node = "stats"
      level = Level.INFO
      useParents = false
      handlers = new FileHandlerConfig {
        filename = "stats.log"
        formatter = BareFormatterConfig
      }
    }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
scala-bootstrapper-0.6.0 lib/template/config/production.scala.erb
scala-bootstrapper-0.5.0 lib/template/config/production.scala.erb