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

injecting log to any javascript function #51

Open
wants to merge 10 commits into
base: master
from

Readme to describe how to use log injection

  • Loading branch information
dhewzulla committed Nov 8, 2017
commit 47ac7920878c1a1bea25f4edec123dc20d8f040b
@@ -165,12 +165,12 @@ On other hand if the injected function has the return value, for example if the

```Javascript
LTracker.injectLog({
name:"LocalStorageLog"
target:"localStorage.getItem",
enable:100
"name":"localStorageGetItem",
"target":"localStorage.getItem",
"enable":100
});
```
The Loggly will monitor ```localStorage.getUten``` function.
The Loggly will monitor ```localStorage.getItem``` function.

So if the application executes:
```Javascript
@@ -182,6 +182,6 @@ and if the returned value from the localStorage is "dilshat"
then injected code executes the following:
```Javascript
_LTracker.push({
LocalStorageLog:{input:"username", output:"dilshat"}
localStorageGetItem:{input:"username", output:"dilshat"}
})
```
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.