Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
Format stacktrace as array (#233)
Browse files Browse the repository at this point in the history
* Github releases added to yaml

* Create new release

* fix title of changelog (#211)

* Added FormatStackTraceAsArray option to write StackTrace as an array

* Added unit tests, minor code-style changes

* Fix #232 Pass flag formatStackTraceAsArray to base class

* Fix propertuy comment
  • Loading branch information
oscarmorasu authored and mivano committed Apr 14, 2019
1 parent f9f8077 commit 2750db4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ public class ElasticsearchJsonFormatter : DefaultJsonFormatter
/// <param name="serializer">Inject a serializer to force objects to be serialized over being ToString()</param>
/// <param name="inlineFields">When set to true values will be written at the root of the json document</param>
/// <param name="renderMessageTemplate">If true, the message template will be rendered and written to the output as a
/// <param name="formatStackTraceAsArray">If true, splits the StackTrace by new line and writes it as a an array of strings</param>
/// property named RenderedMessageTemplate.</param>
/// <param name="formatStackTraceAsArray">If true, splits the StackTrace by new line and writes it as a an array of strings</param>
public ElasticsearchJsonFormatter(
bool omitEnclosingObject = false,
string closingDelimiter = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public ExceptionAsObjectJsonFormatter(bool omitEnclosingObject = false,
IElasticsearchSerializer serializer = null,
bool inlineFields = false,
bool formatStackTraceAsArray = false)
: base(omitEnclosingObject, closingDelimiter, renderMessage, formatProvider, serializer, inlineFields, formatStackTraceAsArray)
: base(omitEnclosingObject, closingDelimiter, renderMessage, formatProvider, serializer, inlineFields, true, formatStackTraceAsArray)
{
}

Expand Down

0 comments on commit 2750db4

Please sign in to comment.