{"_id":"loggly-jslogger","_rev":"11-6fbe275427b40766508b9d1218eea32a","name":"loggly-jslogger","description":"A Javascript client to send logs to Loggly.","dist-tags":{"latest":"2.2.4"},"versions":{"2.1.0":{"name":"loggly-jslogger","version":"2.1.0","description":"A Javascript client to send logs to Loggly.","browser":"index.js","repository":{"type":"git","url":"git://github.com/loggly/loggly-jslogger.git"},"author":{"name":"Loggly"},"keywords":["loggly-jslogger","jslogger","loggly","log"],"license":"MIT","devDependencies":{"bower":"^1.3.1","grunt":"^0.4.4","grunt-contrib-uglify":"^0.4.0"},"gitHead":"29bc56b9171d398ad8d7b7cb71d37544b2a078f8","bugs":{"url":"https://github.com/loggly/loggly-jslogger/issues"},"homepage":"https://github.com/loggly/loggly-jslogger#readme","_id":"loggly-jslogger@2.1.0","scripts":{},"_shasum":"4dec44635db75996ad0a5588db67c6bf703cc7f3","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.1","_npmUser":{"name":"kpdecker","email":"kpdecker@gmail.com"},"dist":{"shasum":"4dec44635db75996ad0a5588db67c6bf703cc7f3","tarball":"https://registry.npmjs.org/loggly-jslogger/-/loggly-jslogger-2.1.0.tgz","integrity":"sha512-bFC0NKSz0uxLfREZRHDWLxE1IDCnievpbJ0YxxgkGe4c9oraWfm+1LV8rC+xtt4qMmuDsBA+LaISsB0dmtzsmQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6+Sff20eliXm62MZdey/HB8rHpsFs3tbfyS1j4AzxyQIhAKSQpW9tIYhV0dctj1ez4DTPHlhUFru58eQEaubXGEvG"}]},"maintainers":[{"name":"kpdecker","email":"kpdecker@gmail.com"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/loggly-jslogger-2.1.0.tgz_1456266134846_0.40119141642935574"},"directories":{}},"2.2.0":{"name":"loggly-jslogger","version":"2.2.0","description":"A Javascript client to send logs to Loggly.","browser":"index.js","repository":{"type":"git","url":"git://github.com/loggly/loggly-jslogger.git"},"author":{"name":"Loggly"},"keywords":["loggly-jslogger","jslogger","loggly","log"],"license":"MIT","devDependencies":{"bower":"^1.8.0","grunt":"^1.0.1","grunt-contrib-uglify":"^3.0.1"},"gitHead":"309bbd606703a4aba70ff9fd0676f2ba55bdc29f","bugs":{"url":"https://github.com/loggly/loggly-jslogger/issues"},"homepage":"https://github.com/loggly/loggly-jslogger#readme","_id":"loggly-jslogger@2.2.0","scripts":{},"_shasum":"64007295b63faebb261880b235c7f923f36e77b9","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"loggly-hoover","email":"sjain@loggly.com"},"dist":{"shasum":"64007295b63faebb261880b235c7f923f36e77b9","tarball":"https://registry.npmjs.org/loggly-jslogger/-/loggly-jslogger-2.2.0.tgz","integrity":"sha512-2WK4zQQpIIx917sNt3Uyu1+8Rgz3a1PrxygHxHZbjiUWvnstK0npoeJIJIq/j9aXNKZIUu8SPfEmVzqnqaJvbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCFqaDU2BeYPr/w3DRz5EHn74jbnz2LfQakWr/AaowsgIgFdgdveu9YEjeTPfOxlYhOrc1/TdkVtSazTCnFLIxU4M="}]},"maintainers":[{"name":"kpdecker","email":"kpdecker@gmail.com"},{"name":"loggly-hoover","email":"sjain@loggly.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loggly-jslogger-2.2.0.tgz_1503405558087_0.6689632299821824"},"directories":{}},"2.2.1":{"name":"loggly-jslogger","version":"2.2.1","description":"A Javascript client to send logs to Loggly.","browser":"index.js","repository":{"type":"git","url":"git://github.com/loggly/loggly-jslogger.git"},"author":{"name":"Loggly"},"keywords":["loggly-jslogger","jslogger","loggly","log"],"license":"MIT","devDependencies":{"bower":"^1.8.0","grunt":"^1.0.1","grunt-contrib-uglify":"^3.0.1"},"gitHead":"309bbd606703a4aba70ff9fd0676f2ba55bdc29f","bugs":{"url":"https://github.com/loggly/loggly-jslogger/issues"},"homepage":"https://github.com/loggly/loggly-jslogger#readme","_id":"loggly-jslogger@2.2.1","scripts":{},"_shasum":"b743b585d08a0263a42f8fda6b9f04467777a0f6","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"loggly-hoover","email":"sjain@loggly.com"},"dist":{"shasum":"b743b585d08a0263a42f8fda6b9f04467777a0f6","tarball":"https://registry.npmjs.org/loggly-jslogger/-/loggly-jslogger-2.2.1.tgz","integrity":"sha512-wlOXpsRv51KcbtvEa3z1FrXqvCDB9DuWA7h81WGHIFJhwMynpWtTJ1KOE4GzgmxiEBQ4kac4dvzjOlLJf8vKPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHEZ0ErqR/6TjU/x8QEaGTNOP6wsRyt8Fl8RquJf1w/lAiEAjxJvu5xBHw8JitbZKXo4oK9Zu7onzcycPoMQEtwzuzk="}]},"maintainers":[{"name":"kpdecker","email":"kpdecker@gmail.com"},{"name":"loggly-hoover","email":"sjain@loggly.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loggly-jslogger-2.2.1.tgz_1503406550148_0.5859458916820586"},"directories":{}},"2.2.2":{"name":"loggly-jslogger","version":"2.2.2","description":"A Javascript client to send logs to Loggly.","browser":"index.js","repository":{"type":"git","url":"git://github.com/loggly/loggly-jslogger.git"},"author":{"name":"Loggly"},"keywords":["loggly-jslogger","jslogger","loggly","log"],"license":"MIT","devDependencies":{"bower":"^1.8.0","grunt":"^1.0.1","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^3.0.1"},"gitHead":"6a0f5962aee0f04a014061a6d4e491515cf63bc2","bugs":{"url":"https://github.com/loggly/loggly-jslogger/issues"},"homepage":"https://github.com/loggly/loggly-jslogger#readme","_id":"loggly-jslogger@2.2.2","_npmVersion":"5.4.1","_nodeVersion":"7.7.2","_npmUser":{"name":"loggly-hoover","email":"sjain@loggly.com"},"dist":{"integrity":"sha512-0lmavRkkmsYhMy0wd0zKSk9R3nU3cDIcqKTI/HZVMVwYtZlg1s2lmWCKpbs7PIPqwvUXtH1u+NFPGpDIvzwhlA==","shasum":"f527e6c09c57587b4eb3852638ee1b3b3b77bc8b","tarball":"https://registry.npmjs.org/loggly-jslogger/-/loggly-jslogger-2.2.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDycdtbTFvDfY6rN+d+dNpXrOasEgJBXMrGXVMYMRu3PAiEAuy8WlGweehPFk1yBOu0Dg5EZh5a3oREjQ/qMeZZrZBI="}]},"maintainers":[{"name":"kpdecker","email":"kpdecker@gmail.com"},{"name":"loggly-hoover","email":"sjain@loggly.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loggly-jslogger-2.2.2.tgz_1505302353660_0.8539494886063039"},"directories":{}},"2.2.4":{"name":"loggly-jslogger","version":"2.2.4","description":"A Javascript client to send logs to Loggly.","browser":"index.js","repository":{"type":"git","url":"git://github.com/loggly/loggly-jslogger.git"},"author":{"name":"Loggly"},"keywords":["loggly-jslogger","jslogger","loggly","log"],"license":"MIT","devDependencies":{"bower":"^1.8.12","grunt":"^1.3.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^3.4.0"},"scripts":{"build":"grunt"},"gitHead":"4e35c33365df27c2f1dee2a960412ed60573c7fe","bugs":{"url":"https://github.com/loggly/loggly-jslogger/issues"},"homepage":"https://github.com/loggly/loggly-jslogger#readme","_id":"loggly-jslogger@2.2.4","_nodeVersion":"12.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-3VttLHnmz1RdfJHP4x8ALsTwDt0ONqrgfV9B1y6UTijP9TWwNGKqdjK0P7FfoEEEM3Fmg2/pmmOA92U20YKRTw==","shasum":"db6f64c43d6ad9d4a1778d9eb2f7ad2559780bce","tarball":"https://registry.npmjs.org/loggly-jslogger/-/loggly-jslogger-2.2.4.tgz","fileCount":11,"unpackedSize":43614,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgXEpkCRA9TVsSAnZWagAAEqIP/ApEzcgDJn/gReNVoLdI\nqBpn8pgNk3164DCPlu6dEkBW2JZkcMit1VkWt3AeEF1rL3647kxVICbOO9Hl\n6gyljVykc4xJq44tqirenrizIjsiN3x8q2F3o0L+JzwofRnvZ6KGfuowYt2z\nQV0Du8/skxdGrj9/WOb/WYE00NLFCIyJzuH0SeQYKmux2ZW9hG8WX1o57hEP\nHAskrZfK0qAoOF0Sn1tr5zt5UmbGBmXn4XsAtJYGYuHRjso5ZtbvWi4gjzld\nDK4RiPzNqHCCzf3edOcjDlGNh1hrFmv/SJicgaAlccey6RCBwUEawBbed4xy\nhH8jPH8xMMjNaUrQzt5ZVcjL3VMUnQ2P32xb0TbaIs/ujTF1WljLO9a3zgkz\nPKvv8q6GDL38LM/UWpq5BHZT44+NPchUes8vWoe1/ULuxh6UwxfBi9S4z2Yi\nt208T2E5FW2h9Tl90gOalzw5Kas7FCVDou1PV2YiYz41QEJunzaRUdH6PW0D\nFBRpihFR7IwVTrFR2XQzcaatdT/R0b5v7dNT8sxVeNB6Xa/HqFeMg7gwzPBI\n7PFJfPPzxxiC5zkQ2b+t5MjN3MlIQIrIj2BJYhoQg0LvbVo26gOEbW0ISczQ\no+vRBzTxXjaDMqQZNxzDjaF70O2ZuLqYeTdQCdEXZkkBmE6aZZwi12rEkmoV\nigop\r\n=sARo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE4n7O1oqN4ingm0fIf6lQ/y3FGN8rhpRyF3H6W48wt9AiEAh/tZhs3ywdVN8acJNWPljqq8n+x9AplqbMKZM8jYjK8="}]},"_npmUser":{"name":"loggly-hoover","email":"ales.trunda@solarwinds.com"},"directories":{},"maintainers":[{"name":"kpdecker","email":"kpdecker@gmail.com"},{"name":"loggly-hoover","email":"ales.trunda@solarwinds.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loggly-jslogger_2.2.4_1616661091924_0.6253523508919976"},"_hasShrinkwrap":false}},"readme":"# loggly-jslogger\n\nClient-side (browser) logger to send Javascript logs from any website to Loggly. Check out Loggly’s [Javascript logging documentation](https://documentation.solarwinds.com/en/Success_Center/loggly/default.htm#cshid=loggly_javascript) to learn more.\n\n## Installation\n\nInsert the following code into your webpage, replacing `your-customer-token` with the key defined in the `Source Setup -> Customer Tokens` page:\n\n```html\n<script type=\"text/javascript\" src=\"https://cloudfront.loggly.com/js/loggly.tracker-2.2.4.min.js\" async></script>\n<script>\n  var _LTracker = _LTracker || [];\n  _LTracker.push({\n    'logglyKey': 'your-customer-token',\n    'sendConsoleErrors': true,\n    'tag': 'javascript-logs'\n  });\n</script>\n```\n\nTo get early access to the most recent updates to the tracker, use the script [https://cloudfront.loggly.com/js/loggly.tracker-latest.min.js](https://cloudfront.loggly.com/js/loggly.tracker-latest.min.js). This is not recommended in a production environment as it may include breaking changes.\n\n## Usage\n\nLogging text:\n\n```javascript\n_LTracker.push('my tracking string');\n```\n\nLogging JSON:\n\n```javascript\n_LTracker.push({\n  'text': 'my tracking string',\n  'aList': [9, 2, 5],\n  'anObject': {\n    'id': 1,\n    'value': 'foobar'\n  }\n});\n```\n\n## Customization\n\nSeparate logging instance:\n\n```javascript\nvar myBetterLogger = new LogglyTracker();\nmyBetterLogger.push({'logglyKey': 'your-customer-token' });  // push a loggly key to initialize\n```\n\n## Send Console Errors to Loggly\n\nKeep the **sendConsoleErrors** value to *true*  to send all unhandled errors to Loggly with detailed information, including error message, URL, line number and column number.\n\n## Send Tags to Loggly\n\nSend your custom tags to Loggly by setting the `tag` property.\n\n```Javascript\n_LTracker.push({\n  'logglyKey': 'your-customer-token',\n  'sendConsoleErrors' : true,\n  'tag' : 'tag1,tag2'\n});\n```\n\n## Special Characters Support\n\nSet the **useUtfEncoding** value to *true* to prevent special characters from showing as odd or unusual characters in Loggly Search. Special characters will be easier to read and understand in your log events.\n\n\nSee the usage below:\n\n```Javascript\n_LTracker.push({\n  'logglyKey': 'your-customer-token',\n  'sendConsoleErrors' : true,\n  'tag' : 'javascript-logs',\n  'useUtfEncoding': true\n});\n```\n\n## Setup Proxy for Ad blockers\n\nIf the script or its requests are blocked by ad blockers, you can proxy requests from your own domain. To do this, perform following steps\n\nSet `useProxyDomain` property to true\n\n```Javascript\n_LTracker.push({\n  'logglyKey': 'your-customer-token',\n  'sendConsoleErrors' : true,\n  'tag' : 'javascript-logs',\n  'useDomainProxy' : true\n});\n```\n\nUse the following configuration on your server to forward the requests to Loggly\n\n```text\n#Proxy to Loggly\nlocation /loggly/ {\n    rewrite ^/loggly/(.*)$ /$1 break;  # remove the '/loggly' part from the path, leaving /inputs/xxxxxxxx-xxxx-.../tag/xxx\n    proxy_set_header Host logs-01.loggly.com;\n    proxy_set_header X-Real-IP $remote_addr;\n    proxy_set_header X-Forwarded-For $remote_addr;\n    proxy_pass http://logs-01.loggly.com;\n}\n```\n\n## Build Production Version\n\nRun `npm run build` to build production version. The output is saved in folder `dist`.\n\n## Run tests\n\nIn your web browser open file `jasminetest/TrackerSpecRunner.html`.\n","maintainers":[{"email":"loggly-service-account@solarwinds.com","name":"loggly-hoover"},{"email":"swi_npm_public@solarwinds.com","name":"swi_npm_public"},{"email":"kpdecker@gmail.com","name":"kpdecker"}],"time":{"modified":"2023-10-06T07:00:21.643Z","created":"2016-02-23T22:22:17.172Z","2.1.0":"2016-02-23T22:22:17.172Z","2.2.0":"2017-08-22T12:39:19.104Z","2.2.1":"2017-08-22T12:55:51.028Z","2.2.2":"2017-09-13T11:32:33.760Z","2.2.4":"2021-03-25T08:31:32.117Z"},"homepage":"https://github.com/loggly/loggly-jslogger#readme","keywords":["loggly-jslogger","jslogger","loggly","log"],"repository":{"type":"git","url":"git://github.com/loggly/loggly-jslogger.git"},"author":{"name":"Loggly"},"bugs":{"url":"https://github.com/loggly/loggly-jslogger/issues"},"license":"MIT","readmeFilename":"README.md"}