{"id":20919615,"url":"https://github.com/vqcomms/angularx-logger","last_synced_at":"2026-04-29T01:06:04.841Z","repository":{"id":57180024,"uuid":"92265114","full_name":"VQComms/angularx-logger","owner":"VQComms","description":"AngularX-logger a simple to use logger for all your logging needs!","archived":false,"fork":false,"pushed_at":"2018-05-14T14:08:46.000Z","size":127,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-19T13:07:25.917Z","etag":null,"topics":["angular","angular2","angular4","logger","logging"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/VQComms.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-24T07:49:25.000Z","updated_at":"2018-05-14T14:08:45.000Z","dependencies_parsed_at":"2022-09-14T03:30:56.824Z","dependency_job_id":null,"html_url":"https://github.com/VQComms/angularx-logger","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/VQComms%2Fangularx-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VQComms%2Fangularx-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VQComms%2Fangularx-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VQComms%2Fangularx-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VQComms","download_url":"https://codeload.github.com/VQComms/angularx-logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243312923,"owners_count":20271167,"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","angular2","angular4","logger","logging"],"created_at":"2024-11-18T17:08:05.980Z","updated_at":"2026-04-29T01:06:04.807Z","avatar_url":"https://github.com/VQComms.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angularx-logger\n\u003e Logging for your Angular project\n\n## Getting started\n\nInstall via npm:\n\n```\nnpm install -S angularx-logger\n```\n\nOr\n\nInstall via yarn:\n\n```\nyarn add angularx-logger\n```\n\nThen add to your Angular app's app module:\n\n```\nimport { NgModule }         from '@angular/core';\nimport { AngularXLoggerModule } from 'angularx-logger';\n \n@NgModule({\n    imports: [ AngularXLoggerModule.forRoot() ]\n})\nexport class MyAwesomeAppModule { } \n```\n\nThen use it in your app like so:\n\n```\nimport { Component } from '@angular/core';\nimport { Logger } from 'angularx-logger';\n\n@Component({\n    selector: 'awesome',\n    template: `\u003ch1\u003eAwesome\u003c/h1\u003e`\n})\nexport class MyAwesomeComponent {\n\n    constructor(private logger: Logger){\n    \n        this.logger.log('Hello World!', { status: 'awesome' });\n        \n    }\n}\n```\n\nAnd you're ready to go!\n\n## Options\n\nTo use options, pass a `LoggerOptions` object to `forRoot` like:\n\n```\nAngularXLoggerModule.forRoot({ enabled: true, globalPrefix: 'Awesome App =\u003e' })\n```\n\n`enabled` turn on or off the logger\n`globalPrefix` adds a global prefix to each logged message, helpful for separating your logging from everyone elses!\n\n## Future goals\n\n* Component level \"prefixes\" to all log messages\n* Multiple \"targets\" and custom \"targets\"\n* Keep up to date\n* Tests\n\n\n## Scripts\n* `\"test\"`: runs the tests\n* `\"build\"`: builds\n* `\"publish:lib`: publishes to npm\n\n## Using Angular-Library-Starter\n\nThis project uses this starter project:\n\nhttps://github.com/robisim74/angular-library-starter","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvqcomms%2Fangularx-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvqcomms%2Fangularx-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvqcomms%2Fangularx-logger/lists"}