Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow different tags on each log statement #35

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Add documentation of mutable tags feature

  • Loading branch information
Bradley Portnoy
Bradley Portnoy committed Dec 4, 2015
commit 5e307edf4677851739ef3aebd3244f35197116b4
@@ -63,6 +63,19 @@ _LTracker.push({
});
```

By default, tags are set once and are then immutable. To enable changing the tag with each log statement, set `mutableTags` to true when initializing:

```Javascript
_LTracker.push({
'logglyKey': 'your-customer-token',
'sendConsoleErrors' : true,
'tag' : 'tag1,tag2',
'mutableTags' : true

This comment has been minimized.

@mostlyjason

mostlyjason Dec 8, 2015
Contributor

Maybe we should default to false since this is the current behavior, and it might be unexpected that a tag field in the data would update the tag on the URL

This comment has been minimized.

@tgrrtt

tgrrtt Apr 12, 2017

@mostlyjason This is just the documentation. By default it appears that the mutableTags property on the tracker will be undefined

});
```

If mutable tags are enabled, any log object passed with a 'tag' key will overwrite the previous tags.

Setup Proxy for Ad blockers
----------
You can proxy the requests from your own domain if the script or its requests are blocked by Ad blockers. To do this, you need to perform following steps
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.