logback-gelf icon indicating copy to clipboard operation
logback-gelf copied to clipboard

added support for primitive field types

Open derrickchilders opened this issue 11 years ago • 1 comments

derrickchilders avatar Mar 18 '15 10:03 derrickchilders

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);

pukkaone avatar Mar 18 '15 18:03 pukkaone