logback-gelf
logback-gelf copied to clipboard
added support for primitive field types
Thanks for the pull request. The GELF format specification allows a field value to be a JSON number or string, so you only need to convert a field value to a number or string. Use NumberFormat to convert a string to a Number subtype instance:
Number number = NumberFormat.getInstance().parse(string);