{"id":22180023,"url":"https://github.com/ngworker/lumberjack-applicationinsights-driver","last_synced_at":"2025-03-24T18:44:56.986Z","repository":{"id":54392233,"uuid":"339689480","full_name":"ngworker/lumberjack-applicationinsights-driver","owner":"ngworker","description":"Lumberjack driver to work with Azure Application Insights","archived":false,"fork":false,"pushed_at":"2021-02-23T15:14:45.000Z","size":450,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-18T06:34:11.487Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ngworker.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-17T10:41:41.000Z","updated_at":"2022-11-25T21:32:40.000Z","dependencies_parsed_at":"2022-08-13T14:20:18.986Z","dependency_job_id":null,"html_url":"https://github.com/ngworker/lumberjack-applicationinsights-driver","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":"ngworker/lumberjack-custom-driver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngworker%2Flumberjack-applicationinsights-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngworker%2Flumberjack-applicationinsights-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngworker%2Flumberjack-applicationinsights-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngworker%2Flumberjack-applicationinsights-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngworker","download_url":"https://codeload.github.com/ngworker/lumberjack-applicationinsights-driver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245217854,"owners_count":20579299,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T09:16:32.982Z","updated_at":"2025-03-24T18:44:56.956Z","avatar_url":"https://github.com/ngworker.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @ngworker/lumberjack-applicationinsights-driver\n\n\u003cp align=\"center\"\u003e\n \u003cimg width=\"40%\" height=\"40%\" src=\"./logo.svg\"\u003e\n\u003c/p\u003e\n\n[Logo by Felipe Zambrano](http://instagram.com/octopez)\n\n\u003cbr /\u003e\n\n[![MIT](https://img.shields.io/packagist/l/doctrine/orm.svg?style=flat-square)]()\n[![commitizen](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)]()\n[![PRs](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)]()\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors-)\n[![ngworker](https://img.shields.io/badge/ngworker-%40-red)](https://github.com/ngworker/)\n[![Wallaby.js](https://img.shields.io/badge/wallaby.js-powered-blue.svg?style=flat\u0026logo=github)](https://wallabyjs.com/oss/)\n\nLumberjack Applicationinsights Driver is a custom log driver for [ngworker/lumberjack](https://github.com/ngworker/lumberjack). It is used to send logs over [Azure Application Insights](https://azure.microsoft.com/en-us/) protocol.\n\n## Features\n\n- ✅ Logs to Azure Application Insights log store\n- ✅ Unit test coverage\n- ✅ Prints your DEBUG, WARNING and CRITICAL logs to console\n- ✅ Follows Lumberjack Best Practices guide\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Compatibility](#compatibility)\n- [Usage](#usage)\n- [Wallaby.js](#wallaby.js)\n- [Contributors](#contributors)\n\n## Installation\n\nLumberjackApplicationinsightsDriver is published as the `@ngworker/lumberjack-applicationinsights-driver` package.\n\n| Toolchain   | Command                                                       |\n| ----------- | ------------------------------------------------------------- |\n| Angular CLI | `ng add @ngworker/lumberjack-applicationinsights-driver`      |\n| NPM CLI     | `npm install @ngworker/lumberjack-applicationinsights-driver` |\n| Yarn CLI    | `yarn add @ngworker/lumberjack-applicationinsights-driver`    |\n\n## Compatibility\n\n`LumberjackApplicationinsightsDriver` has verified compatibility with the following packages versions.\n\n| LumberjackApplicationinsightsDriver | Lumberjack     | @microsoft/applicationinsights-web |\n| ----------------------------------- | -------------- | ---------------------------------- |\n| 1.0.x                               | ^2.0.0         | ^2.5.11                            |\n\n\nIf the version you are using is not listed, please [raise an issue in our GitHub repository](https://github.com/ngworker/lumberjack-applicationinsights-driver/issues/new).\n\n## Usage\n\nTo start using LumberjackApplicationinsightsDriver, import it in your root or core Angular module along with Lumberjack.\n\n```ts\nimport { NgModule } from '@angular/core';\nimport { LumberjackLevel, LumberjackModule } from '@ngworker/lumberjack';\nimport { LumberjackApplicationinsightsDriver } from '@ngworker/lumberjack-applicationinsights-driver';\n\n@NgModule({\n  imports: [\n    LumberjackModule.forRoot({\n      levels: [LumberjackLevel.Verbose],\n    }),\n    LumberjackApplicationinsightsDriver.forRoot({\n      levels: [LumberjackLevel.Critical, LumberjackLevel.Error],\n      instrumentationKey: environment.appInsights.instrumentationKey,\n      loggingLevelConsole: 3,\n    }),\n    // (...)\n  ],\n  // (...)\n})\nexport class AppModule {}\n```\n\nNow you can start using the `LumberjackService` or extend `LumberjackLogger` and they will automatically use the `LumberjackApplicationinsightsDriver`.\n\n## Configuration\n\nTo use the Application Insights you must provide or `instrumentationKey`, or `connectionString` in the configuration object provided in `forRoot`. Additionally you can specify `loggingLevelConsole`.\n\n| Setting              | Description\n|----------------------|----------------\n| `instrumentationKey`  | Instrumentation key of resource. Either this or connectionString must be specified.\n| `connectionString`    | Connection string of resource. Either this or instrumentationKey must be specified.\n| `loggingLevelConsole` | Console logging level. All logs with a severity level higher than the configured level will be printed to console. Otherwise they are suppressed. Level 3 will print DEBUG, WARNING and CRITICAL logs to console, level 2 will print both CRITICAL and WARNING logs to console, level 1 prints only CRITICAL.\n\n\n## Wallaby.js\n\n[![Wallaby.js](https://img.shields.io/badge/wallaby.js-powered-blue.svg?style=for-the-badge\u0026logo=github)](https://wallabyjs.com/oss/)\n\nContributors to this repository are welcome to use the\n[Wallaby.js OSS License](https://wallabyjs.com/oss/) to get\ntest results immediately as you type, and see the results in\nyour editor right next to your code.\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003c!-- markdownlint-enable --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngworker%2Flumberjack-applicationinsights-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngworker%2Flumberjack-applicationinsights-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngworker%2Flumberjack-applicationinsights-driver/lists"}