bketelsen/skynet — pull request #177 by elimisteve (2012-11-08 20:16:38+00:00)
Title: LogPayload now includes all skynet.ServiceConfig data

MongoDB logs now look like this:

```
{
"_id" : ObjectId("509c11b20ba9f74243671b30"),
"level" : "fatal",
"message" : "New panic 20",
"level_index" : 5,
"name" : "main.dummy",
"pid" : 24319,
"time" : ISODate("2012-11-08T20:10:26.907Z"),
"host_name" : "hexcore",
"tags" : [ ],
"uuid" : "abc123",
"duration" : NumberLong(0),
"thread_name" : "",
"application" : "",
"payload" : null,
"exception" : {
"name" : "",
"message" : "New panic 20",
"stack_trace" : [
"/home/steve/dpc/skynet/client/skynet/semantic_logger.go:79 _/home/steve/dpc/skynet/client/skynet.(*LogPayload).SetException()\n",
"/home/steve/dpc/skynet/client/skynet/mongo_logger.go:85 _/home/steve/dpc/skynet/client/skynet.(*MongoSemanticLogger).Fatal()\n",
"/home/steve/dpc/semantic_logger-example-new-api.go:77 main.dummy()\n",
"/home/steve/dpc/semantic_logger-example-new-api.go:72 main.fatalRunner()\n",
"/home/steve/dpc/semantic_logger-example-new-api.go:60 main.main()\n",
"/home/steve/Dropbox/programming/go/src/pkg/runtime/proc.c:244 runtime.main()\n",
"/home/steve/Dropbox/programming/go/src/pkg/runtime/proc.c:271 runtime.goexit()\n"
]
},
"service_config" : {
"log" : null,
"uuid" : "20af41b8-6f68-43a1-ab41-e20296bf0a4b",
"name" : "",
"version" : "unknown",
"region" : "unknown",
"serviceaddr" : {
"ipaddress" : "127.0.0.1",
"port" : 9000,
"maxport" : 9999
},
"adminaddr" : {
"ipaddress" : "127.0.0.1",
"port" : 9000,
"maxport" : 9999
},
"doozerconfig" : {
"uri" : "127.0.0.1:8046",
"booturi" : "127.0.0.1:8046",
"autodiscover" : true
},
"doozerupdateinterval" : NumberLong("5000000000")
}
}
```