forked from twitter/scala_school
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevelopment.scala
42 lines (37 loc) · 1003 Bytes
/
development.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import com.twitter.conversions.time._
import com.twitter.logging.config._
import com.twitter.ostrich.admin.config._
import com.twitter.searchbird.config._
// development mode.
new SearchbirdServiceConfig {
shards = Seq(
"localhost:9000",
"localhost:9001",
"localhost:9002"
)
// Where your service will be exposed.
thriftPort = 9999
// Expert-only: Ostrich stats and logger configuration.
admin.statsNodes = new StatsConfig {
reporters = new JsonStatsLoggerConfig {
loggerName = "stats"
serviceName = "searchbird"
} :: new TimeSeriesCollectorConfig
}
loggers =
new LoggerConfig {
level = Level.DEBUG
handlers = new FileHandlerConfig {
filename = "searchbird.log"
roll = Policy.SigHup
}
} :: new LoggerConfig {
node = "stats"
level = Level.INFO
useParents = false
handlers = new FileHandlerConfig {
filename = "stats.log"
formatter = BareFormatterConfig
}
}
}