Chrome Plugin pulling logentries into the browser
blammo in your Chrome DevTools!
To configure the extension for a specific logentries account and environment, the configuration variables at the beginning of js/background.js
must be modified. As well, the manifest.json
file must be configured for the hosts being logged.
-
Edit the
accountKey
variable to the account key for your logentries account. -
Edit the
domainToLogs
variable to the pages you want to log in the following format:
"server.tld":["/path/to/log1/", "path/to/log2/", ...]
-
Add the hostnames to log to
manifest.json
under the"permissions"
key, between the"webRequest"
and"https://pull.logentries.com/*"
entries.
- Clone this repository locally.
- Open chrome://extensions and check the checkbox labeled "Developer Mode".
- Click on "Load unpacked extension...".
- Select the directory where you cloned the repository.
- Now you should be able to see a new tab named Logger in your DevTools.
There are multiple ways for opening DevTools in chrome.
- Right Click on any page and click on Inspect Element (Last Option).
- Shortcut for opening DevTools is Command + Option(alt) + I.
- Click on customize and control google chrome -> Go to More Tools -> Click on Developer Tools.