|
| void | SetMessage (const std::string &message) |
| | Quick accessor for short_message field. More...
|
| |
| void | SetFullMessage (const std::string &message) |
| | Quick accessor for full_message field. More...
|
| |
| void | SetHost (const std::string &host) |
| | Quick accessor for host field. More...
|
| |
| void | SetTimestamp (double timestamp) |
| | Quick accessor for timestamp field. More...
|
| |
| template<typename T > |
| void | SetField (const std::string &name, T value) |
| | Adds a field to the message. More...
|
| |
| FieldSetter | operator[] (const std::string &field) |
| | Adds a field to the message. More...
|
| |
A single GELF message, with write-only access to its fields.
- Note
- This class only supports GELF version 1.1 and treats deprecated standard fields as normal additional fields.
Currently the following standard fields are handled: version, host, short_message, full_message, timestamp, level. Standard fields are included "as-is". All other fields are prefixed with "_".