{"_id":"@bristlecone-labs/neo-logger-sdk","_rev":"5-53cc3b990a0a8b5e932b196a66691179","time":{"created":"2022-02-22T10:45:20.942Z","1.5.1":"2022-02-14T05:49:00.551Z","modified":"2022-04-04T20:42:24.333Z","2.0.0":"2022-02-16T06:45:16.938Z","2.0.1":"2022-02-22T10:45:21.147Z"},"name":"@bristlecone-labs/neo-logger-sdk","dist-tags":{"latest":"2.0.1"},"versions":{"2.0.1":{"name":"@bristlecone-labs/neo-logger-sdk","version":"2.0.1","peerDependencies":{"@angular/common":"^7.2.0","@angular/core":"^7.2.0"},"publishConfig":{"access":"public"},"main":"bundles/bristlecone-labs-neo-logger-sdk.umd.js","module":"fesm5/bristlecone-labs-neo-logger-sdk.js","es2015":"fesm2015/bristlecone-labs-neo-logger-sdk.js","esm5":"esm5/bristlecone-labs-neo-logger-sdk.js","esm2015":"esm2015/bristlecone-labs-neo-logger-sdk.js","fesm5":"fesm5/bristlecone-labs-neo-logger-sdk.js","fesm2015":"fesm2015/bristlecone-labs-neo-logger-sdk.js","typings":"bristlecone-labs-neo-logger-sdk.d.ts","metadata":"bristlecone-labs-neo-logger-sdk.metadata.json","sideEffects":false,"dependencies":{"tslib":"^1.9.0"},"description":"This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.2.0.","_id":"@bristlecone-labs/neo-logger-sdk@2.0.1","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-PDYsVcFVJ103gKWEkSez3kP4thna6STEGZW2ERKxQX7+R8uOQskxt4nt3Hvp5JGrr5B829aRz66UB03caWWJeg==","shasum":"6d9ad1b91734ef9785302e8099b56e3fc2b286e9","tarball":"https://registry.npmjs.org/@bristlecone-labs/neo-logger-sdk/-/neo-logger-sdk-2.0.1.tgz","fileCount":32,"unpackedSize":159520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFL7BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqXWRAAoaiI3LOA+XUhvRjayHhwtrqg6k2RFZc2GJzItHjP6/muQ/7b\r\nQFpsmtclN9XPTCeaxXdDo82SmytuueLpTV1eVEplytUvMdxeCBO56tH02Ju6\r\n+LOPQUa+g5ntWsdd17DKQq334HCaouZv/0zhtbp+7mvC/sEaX8ieWz7FyqJy\r\n2FweEcAgx8MNHCe6A2QYR/8uX9WXuv7sbYQsTjvw3uz9SOQtTRGIFpdMW7QY\r\nLGNy3xR3H279XvkZ2RVwuBW16xI+GjNKRaDpt5NjZfX9Jlfp5MGshvniVP5K\r\n4tmdz9keRiPdQ9HGj30/5YfyOQc7BUVQ66vFQ/lKTyFDcrkp9B7EEl6I83DB\r\nuXNRmPq10hXgWVh6X/gIp3Zh35jh6RFXo5fXgNGdHuIH9NQYdrw/rbp2Bm2n\r\nm4qneNQBrp4e+2HAbQgXWjHGaAWea1MB5P/OorZvvxyV4+rw4uBw5BSKusCj\r\n/4/aSsO+ZZxgFCHxmGSL8RErBwHdjFVGpIfuodji8aJs4RsVrcXXiNkxTcV1\r\nHMhxlHKmFgsEEqph89I3ra2YrTWjzRIbSUCb67xsIc5F++qAz45Bn0DRNour\r\nLKEmL4VhYI8etxMiKnmyPGI7vZSZVA9UII52N8C6myszLGP/y1cwBVhMPGMt\r\nRA1xbTtR9c0FW2Drs+krbBWoDRWaKUoYenE=\r\n=AKjn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEF1pFxzVrt9JaCM5AHrqfaAGeH/p6r8Pmjpvkp1c3DqAiEA4iTMAZBVvy4I4KvowzffdFBwCdMKX6TyHGRrsCaNeLU="}]},"_npmUser":{"name":"bristlecone-me","email":"neoadmin@bristlecone.com"},"directories":{},"maintainers":[{"name":"bristlecone-me","email":"neoadmin@bristlecone.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/neo-logger-sdk_2.0.1_1645526721012_0.1798450355455874"},"_hasShrinkwrap":false}},"maintainers":[{"name":"bristlecone-me","email":"neoadmin@bristlecone.com"}],"description":"This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.2.0.","readme":"# NeoLoggerSdk\r\n\r\nThis library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.2.0.\r\n\r\n## Summary\r\n\r\nProgrammers frequently use console.log to record errors or other informational messages in their Angular applications. Although this is fine while debugging your application, it’s not a best practice for production applications. As Angular is all about services, it’s a better idea to create a logging service that you can call from other services and components. In this logging service, you can still call console.log, but you can also modify the service later to record messages to store them in local storage or a database table via the Web API.\r\n\r\n## A Simple Logging Service\r\n\r\nTo get started, create a very simple logging service that only logs to the console. The point here is to replace all of your console.log statements in your Angular application with calls to a service.\r\n\r\nA logger has different levels of logging:\r\n\r\n'audit', 'error', 'warn', 'info', 'debug'\r\nEach of these log levels has its own method on the logging instance. You can set the maximum log level on a logger at runtime.\r\n\r\n1. info(logMessage: string, appName: string, userEmail: string, source?: string, stackTrace?: string)\r\n2. error(logMessage: string, appName: string, userEmail: string, source?: string, stackTrace?: string)\r\n3. warn(logMessage: string, appName: string, userEmail: string, source?: string, stackTrace?: string)\r\n4. debug(logMessage: string, appName: string, userEmail: string, source?: string, stackTrace?: string)\r\n5. audit(logMessage: string, appName: string, userEmail: string)\r\n6. fileLineage(logMessage: string, appName: string, userEmail: string, filePath: string)\r\n\r\nsource and stackTrace will be optional.\r\nAudit type logging will be user audit and file audit(fileLineage).\r\n\r\n## How to use neo-logger-sdk\r\n\r\nnpm i @bristlecone-labs/neo-logger-sdk\r\n\r\nimport NeoLoggerSdkService in particular component like below\r\n\r\n## Example\r\n\r\n```\r\nimport { Component } from '@angular/core';\r\nimport { NeoLoggerSdkService } from '@bristlecone-labs/neo-logger-sdk';\r\n\r\n@Component({\r\n  selector: 'al-root',\r\n  templateUrl: './app.component.html',\r\n  styleUrls: ['./app.component.css']\r\n})\r\nexport class AppComponent {\r\n  title = 'al';\r\n  constructor(private loggerService: NeoLoggerSdkService) {\r\n    this.loggerService.audit('Login to App', 'NEO Data Platform', 'neoadmin@bristlecone.com');\r\n    this.loggerService.fileLineage('test.csv file is downloaded', 'NEO Data Platform', 'neoadmin@bristlecone.com', 's3n://us-east-1-neo-dev-data-lake-raw/test.csv');\r\n     this.loggerService.info('Getting Logs', 'NEO Data Platform', 'neoadmin@bristlecone.com', 'app.component.ts');\r\n  }\r\n}\r\n```\r\n\r\nWhile ingesting any logs appName and userEmail is required.\r\nApplication will push the logs through log ingestion api to Athena DB.\r\n\r\n## Code scaffolding\r\n\r\nRun `ng generate component component-name --project neo-logger-sdk` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project neo-logger-sdk`.\r\n> Note: Don't forget to add `--project neo-logger-sdk` or else it will be added to the default project in your `angular.json` file. \r\n\r\n## Build\r\n\r\nRun `ng build neo-logger-sdk` to build the project. The build artifacts will be stored in the `dist/` directory.\r\n\r\n## Publishing\r\n\r\nAfter building your library with `ng build neo-logger-sdk`, go to the dist folder `cd dist/neo-logger-sdk` and run `npm publish`.\r\n\r\n## Running unit tests\r\n\r\nRun `ng test neo-logger-sdk` to execute the unit tests via [Karma](https://karma-runner.github.io).\r\n\r\n## Further help\r\n\r\nTo get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).\r\n\r\n\r\n\r\n","readmeFilename":"README.md"}