js-sumo-logger icon indicating copy to clipboard operation
js-sumo-logger copied to clipboard

Request: Allow logs to be sent without url

Open kmurgic opened this issue 4 years ago • 2 comments

I am working on application where we are logging the path and an object of pathParams to Sumo Logic because it makes filtering by these fields much easier. We would prefer not to send the url as this is redundant information for us and unnecessarily takes up extra disk space.

I did not see an option in the documentation for opting out of sending the url, timestamp, and/or sessionId. For my use case I would only want to opt out of sending the url.

kmurgic avatar Mar 24 '21 17:03 kmurgic

I had a similar use case and currently using the following as a workaround:

logger.log(
  { message },
  { url: undefined } // removes url field
)

lfportal avatar Apr 04 '21 13:04 lfportal

I had a similar use case and currently using the following as a workaround:

logger.log(
  { message },
  { url: undefined } // removes url field
)

Nice work around, we should make url optional. Will make note of this.

safaiyeh avatar May 21 '21 20:05 safaiyeh