{"id":18448622,"url":"https://github.com/tomyitav/angular-logzio","last_synced_at":"2025-04-15T11:25:05.177Z","repository":{"id":57178701,"uuid":"138397886","full_name":"tomyitav/angular-logzio","owner":"tomyitav","description":"Log from your angular app to logzio","archived":false,"fork":false,"pushed_at":"2018-07-09T17:48:10.000Z","size":218,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T21:36:48.161Z","etag":null,"topics":["angular","dependency-injection","elk","logging","logzio"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomyitav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-23T12:03:17.000Z","updated_at":"2023-03-07T04:42:19.000Z","dependencies_parsed_at":"2022-09-09T19:00:17.301Z","dependency_job_id":null,"html_url":"https://github.com/tomyitav/angular-logzio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomyitav%2Fangular-logzio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomyitav%2Fangular-logzio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomyitav%2Fangular-logzio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomyitav%2Fangular-logzio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomyitav","download_url":"https://codeload.github.com/tomyitav/angular-logzio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249059627,"owners_count":21206177,"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":["angular","dependency-injection","elk","logging","logzio"],"created_at":"2024-11-06T07:16:34.628Z","updated_at":"2025-04-15T11:25:05.158Z","avatar_url":"https://github.com/tomyitav.png","language":"TypeScript","readme":"# angular-logz-io\n\n[![npm](https://img.shields.io/npm/v/angular-logz-io.svg)](https://www.npmjs.com/package/angular-logz-io)\n\nIntegrate logzio logging in your Angular app. \n\n## Installation\n\n`npm i --save logzio-ts angular-logz-io`\n\n## How to use in app code\n\nIn order to use `angular-logz-io` in your module, add the following definitions:\n\n```js\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\n\nimport { AppComponent } from './app.component';\nimport { AngularLogzIoModule, LogzioOptions, AbstractLogger, AngularLogzIoService } from 'angular-logz-io';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n    AngularLogzIoModule\n  ],\n  providers: [\n    { provide: LogzioOptions, useValue: { token: 'YOUR_LOGZIO_TOKEN' }},\n    { provide: AbstractLogger, useClass: AngularLogzIoService},\n  ],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\nYou can then inject the AbstractLogger service to use it in a component:\n\n```js\nconstructor(private logz: AbstractLogger) {}\n```\n\nLogging is very simple to use:\n```js\ntestService() {\n  console.log('Logging to logz.io');\n  this.logz.info('got event logzio');\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomyitav%2Fangular-logzio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomyitav%2Fangular-logzio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomyitav%2Fangular-logzio/lists"}