| 457 | } |
| 458 | |
| 459 | String GelfWriter::ComposeGelfMessage(const Dictionary::Ptr& fields, const String& source, double ts) |
| 460 | { |
| 461 | fields->Set("version", "1.1"); |
| 462 | fields->Set("host", source); |
| 463 | fields->Set("timestamp", ts); |
| 464 | |
| 465 | return JsonEncode(fields); |
| 466 | } |
| 467 | |
| 468 | void GelfWriter::SendLogMessage(const Checkable::Ptr& checkable, const String& gelfMessage) |
| 469 | { |