{"_id":"@blockcore/ngx-logger","_rev":"3-336b7186d0bcefc8306c42bc51d77785","name":"@blockcore/ngx-logger","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@blockcore/ngx-logger","version":"0.0.1","keywords":["angular","logging"],"author":{"name":"David Fannin","email":"dbfannin.npm@gmail.com"},"license":"MIT","_id":"@blockcore/ngx-logger@0.0.1","maintainers":[{"name":"sondreb","email":"pixelworld@hotmail.com"}],"contributors":[{"name":"sondreb"},{"name":"martin-reiterer"},{"name":"danielsogl"},{"name":"IsNull"},{"name":"jensengar"},{"name":"leo6104"},{"name":"sam-lex"},{"name":"slindenberg"},{"name":"yildiraymeric"},{"name":"th3n3wguy","email":"tarleton.shane@gmail.com"},{"name":"bniedermeyer"},{"name":"jbarrett732"},{"name":"qortex"},{"name":"bmtheo"},{"name":"amilor"}],"homepage":"https://github.com/dbfannin/ngx-logger#readme","bugs":{"url":"https://github.com/dbfannin/ngx-logger/issues"},"dist":{"shasum":"12c860577f9f47f2a68df66fbc192b67bdf4f37b","tarball":"https://registry.npmjs.org/@blockcore/ngx-logger/-/ngx-logger-0.0.1.tgz","fileCount":128,"integrity":"sha512-le8pz/Xx/Ct2CYXWBYnWBDYeKUbCKybA9S4QEpsGjm4tAExM56o6uGR4rnRuCVwPvgNnExaA5tvWpTWvAUWwgg==","signatures":[{"sig":"MEUCIHzNedYi9/jbpTDIPyHLTaKbElGIVl5v/WBl3Jro0p0cAiEA+iap46oEtZHjyLYelNsoF49jMURdIwonw8f9/m32Ylg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":559167,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/9/oACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmovPhAAiFxWrX5A3G/nQFj92mdkeAawK+JrVmSAMiqQlqq/rGYugnye\r\nD4slGNDGpx0td0imripOV8KfG2Su7p+uvsyGjiqubi2z5l3qzh+nq7Aap3Ly\r\nMzOsUZMn/q1l2UD6SRQqNJ24EMdKQUXgq+eWytEXW0DItsYCIIzcnc982FiT\r\nkqnsttQfLi6C4TsLrXCrP7cEBy75CcmqWaW8grGZVxBaJ+ygvYDJ7OoDGl38\r\n5awIZ9pyA2L+N1NdR1ljjZMspA5ocap9DRmFVnJdvr3QP8N4vxv1iaXNTOre\r\n5/hZm5bijI1vBfhksg7tOUpauEBk5H9LdxDHCx7PFj5vsFefEcQ1trFY4xud\r\nGOwUsqcqUYm2wp2wvJCSIDSHNoSMvyFRN2hMJwArke96yleOydSxXse3UMwP\r\nOtmutXpBDA1Obbzai0dmaqN+mgh0ckrmqT+PQ8OW8//fBVJsWR3fHMeC86mJ\r\n9mfSdwfkJ0sgvcTp4zGBZMVJMP6QTwRLBBgUPHFXogbXpcLsy3z4LtQZpYUT\r\nj5r7UCU8Ff1TY02N3lMWDqWTPgGXrwgEGJy+skjXSKlgM3PK9JYDooLGtKIL\r\n3v6COgrwpdtXXbQlRIezNA2K3Z5bI2vhqM+QIGZBBum+Jv6CwXQkoBqkJlEQ\r\nbHzouH9Lzjy9gsbKNivuAgUggujaW+xpjjo=\r\n=wSZ3\r\n-----END PGP SIGNATURE-----\r\n"},"_from":"file:blockcore-ngx-logger-0.0.1.tgz","es2020":"fesm2020/blockcore-ngx-logger.mjs","module":"fesm2015/blockcore-ngx-logger.mjs","esm2020":"esm2020/blockcore-ngx-logger.mjs","exports":{".":{"node":"./fesm2015/blockcore-ngx-logger.mjs","types":"./index.d.ts","es2015":"./fesm2015/blockcore-ngx-logger.mjs","es2020":"./fesm2020/blockcore-ngx-logger.mjs","default":"./fesm2020/blockcore-ngx-logger.mjs","esm2020":"./esm2020/blockcore-ngx-logger.mjs"},"./testing":{"node":"./fesm2015/blockcore-ngx-logger-testing.mjs","types":"./testing/index.d.ts","es2015":"./fesm2015/blockcore-ngx-logger-testing.mjs","es2020":"./fesm2020/blockcore-ngx-logger-testing.mjs","default":"./fesm2020/blockcore-ngx-logger-testing.mjs","esm2020":"./esm2020/testing/blockcore-ngx-logger-testing.mjs"},"./package.json":{"default":"./package.json"}},"typings":"index.d.ts","_npmUser":{"name":"sondreb","email":"pixelworld@hotmail.com"},"fesm2015":"fesm2015/blockcore-ngx-logger.mjs","fesm2020":"fesm2020/blockcore-ngx-logger.mjs","_resolved":"/home/runner/work/blockcore-ngx-logger/blockcore-ngx-logger/blockcore-ngx-logger-0.0.1.tgz","_integrity":"sha512-le8pz/Xx/Ct2CYXWBYnWBDYeKUbCKybA9S4QEpsGjm4tAExM56o6uGR4rnRuCVwPvgNnExaA5tvWpTWvAUWwgg==","repository":{"url":"git+https://github.com/dbfannin/ngx-logger.git","type":"git"},"_npmVersion":"9.5.0","description":"[![npm version](https://badge.fury.io/js/ngx-logger.svg)](https://www.npmjs.com/package/ngx-logger)","directories":{},"sideEffects":false,"_nodeVersion":"18.14.2","dependencies":{"vlq":"^2.0.4","tslib":"^2.3.0"},"_hasShrinkwrap":false,"peerDependencies":{"rxjs":">6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ngx-logger_0.0.1_1677713384447_0.5997452457654997","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@blockcore/ngx-logger","version":"0.0.2","keywords":["angular","logging"],"author":{"name":"Blockcore"},"license":"MIT","_id":"@blockcore/ngx-logger@0.0.2","maintainers":[{"name":"sondreb","email":"pixelworld@hotmail.com"}],"contributors":[{"name":"sondreb"},{"name":"martin-reiterer"},{"name":"danielsogl"},{"name":"IsNull"},{"name":"jensengar"},{"name":"leo6104"},{"name":"sam-lex"},{"name":"slindenberg"},{"name":"yildiraymeric"},{"name":"th3n3wguy","email":"tarleton.shane@gmail.com"},{"name":"bniedermeyer"},{"name":"jbarrett732"},{"name":"qortex"},{"name":"bmtheo"},{"name":"amilor"}],"homepage":"https://github.com/block-core/blockcore-ngx-logger#readme","bugs":{"url":"https://github.com/block-core/blockcore-ngx-logger/issues"},"dist":{"shasum":"a64fb5d28d8351367d06f83f236cde94bfa31f17","tarball":"https://registry.npmjs.org/@blockcore/ngx-logger/-/ngx-logger-0.0.2.tgz","fileCount":128,"integrity":"sha512-JlEuNEtSzUKGTMS2ZvIZzhFgbip/ySfuJEWp6pVzfienBy4cuVveUqS/l6AFEDgYhQi0timD5XUbrqbqe5fe3g==","signatures":[{"sig":"MEUCIFld37pdxB5r8mlO9P7JLFnEKqnmZ9uQsjM4MJOAoMuEAiEA06FZnwXL9knGIwqEdToxD+q7mskNRp5r6zyMZyXW0qk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":558751,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/+UlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpOdA/9Gqza81CI215V9dqqPu0O3/vU7E0mLxGVYt50QTPArOh8R6rS\r\nO9TsmLuzXD/LQRctltlV4/M5H7tahZ+ye53lilL1Mb2nRCd/gvZgC9tXPQJ5\r\njHAZUY3E3PfyhgxbuzbwZcMPLZdAMIsHpCsBOWnQcQuy/KBnLktV7bczA1yP\r\nxoOglbnAiUPkBuI2poUlnlhyvZ28WOBI8QOfsTQrclF2lmBQ4FcPtLnfVEk5\r\ntsADBQsNhsUgcBuSda07zfzyc7VJVZiRwxL1/3I4g95muSxQy1KdUCIB3j7R\r\nEKV0t4izHFU0XMx5bprLyNzBUQNEBTu0re19Ta4InIgkNeCNNjlT+8NDZx4U\r\nFPO5SQvXgHTjAm/BOl6KqzXHDRnu6nazTERsUSsctarmtspj+j4hSe+OXLtK\r\nqzpzdU4L73AwP8c18lyWFwFh1s4Bx0EAm987bWAqpcvUl2NmVhJs1MVbzZa2\r\nrqi37GwumislBk3msX62QVBIq7+OiEa3KFYvD9m9hNXhzN29VhlpnlIXmZIc\r\nJRrq2k/TGMjxoQ4MnYiqnFenTYec6uIxUIZOgunb5MtPOeVsPAq19hlcTTD2\r\ngfEBiCWYUhUmBvd9VSFInnISoN0SykltBJBNT2KtpNrjCm7Tj7Aj5ZM6Vwqa\r\nf4ofdSWuDA89+rlnSadptpvna7eq7JRijy4=\r\n=idaZ\r\n-----END PGP SIGNATURE-----\r\n"},"_from":"file:blockcore-ngx-logger-0.0.2.tgz","es2020":"fesm2020/blockcore-ngx-logger.mjs","module":"fesm2015/blockcore-ngx-logger.mjs","esm2020":"esm2020/blockcore-ngx-logger.mjs","exports":{".":{"node":"./fesm2015/blockcore-ngx-logger.mjs","types":"./index.d.ts","es2015":"./fesm2015/blockcore-ngx-logger.mjs","es2020":"./fesm2020/blockcore-ngx-logger.mjs","default":"./fesm2020/blockcore-ngx-logger.mjs","esm2020":"./esm2020/blockcore-ngx-logger.mjs"},"./testing":{"node":"./fesm2015/blockcore-ngx-logger-testing.mjs","types":"./testing/index.d.ts","es2015":"./fesm2015/blockcore-ngx-logger-testing.mjs","es2020":"./fesm2020/blockcore-ngx-logger-testing.mjs","default":"./fesm2020/blockcore-ngx-logger-testing.mjs","esm2020":"./esm2020/testing/blockcore-ngx-logger-testing.mjs"},"./package.json":{"default":"./package.json"}},"typings":"index.d.ts","_npmUser":{"name":"sondreb","email":"pixelworld@hotmail.com"},"fesm2015":"fesm2015/blockcore-ngx-logger.mjs","fesm2020":"fesm2020/blockcore-ngx-logger.mjs","_resolved":"/home/runner/work/blockcore-ngx-logger/blockcore-ngx-logger/blockcore-ngx-logger-0.0.2.tgz","_integrity":"sha512-JlEuNEtSzUKGTMS2ZvIZzhFgbip/ySfuJEWp6pVzfienBy4cuVveUqS/l6AFEDgYhQi0timD5XUbrqbqe5fe3g==","repository":{"url":"git+https://github.com/block-core/blockcore-ngx-logger.git","type":"git"},"_npmVersion":"9.3.1","description":"NGX Logger is a simple logging module for Angular 15","directories":{},"sideEffects":false,"_nodeVersion":"18.14.1","dependencies":{"vlq":"^2.0.4","tslib":"^2.3.0"},"_hasShrinkwrap":false,"peerDependencies":{"rxjs":">6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ngx-logger_0.0.2_1677714725282_0.29010019006077026","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@blockcore/ngx-logger","version":"0.0.3","license":"MIT","repository":{"type":"git","url":"git+https://github.com/block-core/blockcore-ngx-logger.git"},"author":{"name":"Blockcore"},"contributors":[{"name":"sondreb"},{"name":"martin-reiterer"},{"name":"danielsogl"},{"name":"IsNull"},{"name":"jensengar"},{"name":"leo6104"},{"name":"sam-lex"},{"name":"slindenberg"},{"name":"yildiraymeric"},{"name":"th3n3wguy","email":"tarleton.shane@gmail.com"},{"name":"bniedermeyer"},{"name":"jbarrett732"},{"name":"qortex"},{"name":"bmtheo"},{"name":"amilor"}],"keywords":["angular","logging"],"bugs":{"url":"https://github.com/block-core/blockcore-ngx-logger/issues"},"dependencies":{"vlq":"^2.0.4","tslib":"^2.3.0"},"peerDependencies":{"rxjs":">7.0.0"},"module":"fesm2022/blockcore-ngx-logger.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","default":"./fesm2022/blockcore-ngx-logger.mjs"},"./testing":{"types":"./testing/index.d.ts","default":"./fesm2022/blockcore-ngx-logger-testing.mjs"}},"sideEffects":false,"_id":"@blockcore/ngx-logger@0.0.3","description":"NGX Logger is a simple logging module for Angular 15","homepage":"https://github.com/block-core/blockcore-ngx-logger#readme","_integrity":"sha512-/J1kg9R3f1UvGNr7KDnRYBYhAFwd8qWjZ0ldjqHxUuge/iRbTjabyw6+sBVN03ekDybPlALKSZkAHWoB3ob4eA==","_resolved":"/home/runner/work/blockcore-ngx-logger/blockcore-ngx-logger/blockcore-ngx-logger-0.0.3.tgz","_from":"file:blockcore-ngx-logger-0.0.3.tgz","_nodeVersion":"18.20.8","_npmVersion":"10.8.2","dist":{"integrity":"sha512-/J1kg9R3f1UvGNr7KDnRYBYhAFwd8qWjZ0ldjqHxUuge/iRbTjabyw6+sBVN03ekDybPlALKSZkAHWoB3ob4eA==","shasum":"bd28694fe2aa789196f1ceb71868eed81a72faaf","tarball":"https://registry.npmjs.org/@blockcore/ngx-logger/-/ngx-logger-0.0.3.tgz","fileCount":85,"unpackedSize":222825,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIA6Po05yfA5L9S8k7+NQNZQpvj13hLfa8XRw+oZXp/M2AiEAqT27BOa4c7VyQpmlUsRL4y7dyrx9Yu+2z/2MH0xS0Oo="}]},"_npmUser":{"name":"sondreb","email":"pixelworld@hotmail.com"},"directories":{},"maintainers":[{"name":"sondreb","email":"pixelworld@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ngx-logger_0.0.3_1743542871447_0.7697236280669608"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-01T23:29:44.395Z","modified":"2025-04-01T21:27:51.786Z","0.0.1":"2023-03-01T23:29:44.614Z","0.0.2":"2023-03-01T23:52:05.468Z","0.0.3":"2025-04-01T21:27:51.620Z"},"bugs":{"url":"https://github.com/block-core/blockcore-ngx-logger/issues"},"author":{"name":"Blockcore"},"license":"MIT","homepage":"https://github.com/block-core/blockcore-ngx-logger#readme","keywords":["angular","logging"],"repository":{"type":"git","url":"git+https://github.com/block-core/blockcore-ngx-logger.git"},"description":"NGX Logger is a simple logging module for Angular 15","contributors":[{"name":"sondreb"},{"name":"martin-reiterer"},{"name":"danielsogl"},{"name":"IsNull"},{"name":"jensengar"},{"name":"leo6104"},{"name":"sam-lex"},{"name":"slindenberg"},{"name":"yildiraymeric"},{"name":"th3n3wguy","email":"tarleton.shane@gmail.com"},{"name":"bniedermeyer"},{"name":"jbarrett732"},{"name":"qortex"},{"name":"bmtheo"},{"name":"amilor"}],"maintainers":[{"name":"sondreb","email":"pixelworld@hotmail.com"}],"readme":"# Blockcore Angular Logger\n\nNGX Logger is a simple logging module for Angular 15\n\nIt allows \"pretty print\" to the console, as well as allowing log messages to be POSTed to a URL for server-side logging.\n\n## Installation\n\n```shell\nnpm install @blockcore/ngx-logger\n```\n\nOnce installed you need to import our main module (optionally you will need to import HttpClientModule):\n\n```typescript\nimport { LoggerModule, NgxLoggerLevel } from \"@blockcore/ngx-logger\";\n// HttpClientModule is only needed if you want to log on server or if you want to inspect sourcemaps\nimport { HttpClientModule } from \"@angular/common/http\";\n```\n\nThe only remaining part is to list the imported module in your application module, passing in a config to initialize the logger.\n\n```typescript\n@NgModule({\n  declarations: [AppComponent, ...],\n  imports:\n  [\n    // HttpClientModule is only needed if you want to log on server or if you want to inspect sourcemaps\n    HttpClientModule,\n    LoggerModule.forRoot({\n      serverLoggingUrl: '/api/logs',\n      level: NgxLoggerLevel.DEBUG,\n      serverLogLevel: NgxLoggerLevel.ERROR\n    }),\n    ...\n  ],\n  bootstrap: [AppComponent]\n})\nexport class AppModule {\n}\n```\n\n## Usage\n\nTo use the Logger, you will need to import it locally, then call one of the logging functions\n\n```typescript\nimport { Component } from \"@angular/core\";\nimport { NGXLogger } from \"@blockcore/ngx-logger\";\n\n@Component({\n  selector: \"your-component\",\n  templateUrl: \"./your.component.html\",\n  styleUrls: [\"your.component.scss\"],\n})\nexport class YourComponent {\n  constructor(private logger: NGXLogger) {\n    this.logger.error(\"Your log message goes here\");\n    this.logger.warn(\"Multiple\", \"Argument\", \"support\");\n  }\n}\n```\n\n_For most browsers, you need to enable \"verbose\" or \"debug\" mode in the developper tools to see debug logs_\n\n## Configuration\n\nConfiguration is sent by the forRoot call\n`LoggerModule.forRoot({level: NgxLoggerLevel.DEBUG})`\n\nFor more information about configuration see the [doc](docs/config.md)\n\n## Customise logger behavior\n\nSince version 5 NGXLogger is fully customisable\n\nSee how in the [doc](docs/customising.md)\n\n## Features\n\nYou can see more of the features supported by NGXLogger in this [doc](docs/features.md)\n\n## Demo App\n\nThere is [a demo application](https://github.com/block-core/blockcore-ngx-logger/tree/master/projects/demo/src) with examples of how to use ngx-logger. To run it perform the following:\n\n- Clone the repo\n- Run `npm ci` or `npm install`\n- Build ngx-logger using `ng build`\n- Run `ng serve demo` to serve the app\n\nA convenience script has been added to `package.json` that performs the above steps. Simply run `npm run demo`\nto have the demo built and served.\n\n## Dependencies\n\n- @angular/common\n- @angular/core\n\n## Testing Your App When Using NGXLogger\n\nIf you inject any of the NGX Logger services into your application, you will need to provide them in your Testing Module.\n\nTo provide them in your Testing Module:\n\n```typescript\nimport { LoggerTestingModule } from 'ngx-logger/testing';\n\nTestBed.configureTestingModule({\n  imports: [\n    LoggerTestingModule\n  ],\n  ...\n});\n```\n\nAll services have mocked classes that can be used for testing located [here](testing/src/lib)\n\n## Contribute\n\nAll are welcome to contribute to NGX Logger.\n\nSee the [doc](docs/contributing.md) to know how\n\n## Fork\n\nThis library is a fork of existing library, upgraded with less backwards compatibility but built to support the latest Angular version.\n\nOriginal source: [https://github.com/dbfannin/ngx-logger](https://github.com/dbfannin/ngx-logger)","readmeFilename":"README.md"}