js-sumo-logger
js-sumo-logger copied to clipboard
Request: Allow logs to be sent without url
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.
I had a similar use case and currently using the following as a workaround:
logger.log(
{ message },
{ url: undefined } // removes url field
)
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.