{"id":30204420,"url":"https://github.com/christophhu/ngx-log-mode","last_synced_at":"2026-02-26T01:49:33.249Z","repository":{"id":289253669,"uuid":"934100217","full_name":"ChristophHu/ngx-log-mode","owner":"ChristophHu","description":"The ngx-log-mode repostory is a demo application of the ngx-log-mode library. The library adds a simple toggle-component to activate or deactivate the log-mode of your application. It is possible to configure the log-level and log-mode (console, localstorage, sessionstorage or webAPI).","archived":false,"fork":false,"pushed_at":"2025-04-22T12:28:31.000Z","size":402,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-08T03:16:05.549Z","etag":null,"topics":["angular","console","demo","localstorage","logging","ngx","webapi"],"latest_commit_sha":null,"homepage":"https://christophhu.github.io/ngx-log-mode/","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/ChristophHu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-17T09:22:00.000Z","updated_at":"2025-04-23T04:56:42.000Z","dependencies_parsed_at":"2025-04-22T11:22:43.452Z","dependency_job_id":"8e804559-7f57-4595-8de1-b22aade49430","html_url":"https://github.com/ChristophHu/ngx-log-mode","commit_stats":null,"previous_names":["christophhu/ngx-log-mode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ChristophHu/ngx-log-mode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristophHu%2Fngx-log-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristophHu%2Fngx-log-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristophHu%2Fngx-log-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristophHu%2Fngx-log-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChristophHu","download_url":"https://codeload.github.com/ChristophHu/ngx-log-mode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristophHu%2Fngx-log-mode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270228986,"owners_count":24548959,"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","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","console","demo","localstorage","logging","ngx","webapi"],"created_at":"2025-08-13T12:46:09.118Z","updated_at":"2026-02-26T01:49:28.230Z","avatar_url":"https://github.com/ChristophHu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ngx-Log-Mode\n\n## Frameworks and Languages\n\u003cp align=\"left\"\u003e\n  \u003cimg alt=\"Static Badge\" src=\"https://img.shields.io/badge/19.2.0-000000?style=for-the-badge\u0026logo=angular\u0026logoColor=white\u0026label=Angular\u0026labelColor=000000\"\u003e\u003cbr\u003e\n  \u003cimg alt=\"Static Badge\" src=\"https://img.shields.io/badge/4.1.4-000000?style=for-the-badge\u0026logo=tailwindcss\u0026logoColor=white\u0026label=Tailwind\u0026labelColor=06B6D4\u0026color=000000\"\u003e\u003cbr\u003e\n  \u003cimg alt=\"Static Badge\" src=\"https://img.shields.io/badge/5.7.2-000000?style=for-the-badge\u0026logo=typescript\u0026logoColor=white\u0026label=Typescript\u0026labelColor=007ACC\u0026color=000000\"\u003e\n\u003c/p\u003e\n\n## Demo\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://christophhu.github.io/ngx-log-mode\"\u003e\u003cimg src=\"https://github.com/ChristophHu/ChristophHu/blob/main/assets/img/ngx-log-mode.png\" width=\"500\" alt=\"image\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Description\nThis Repository is a demo application for the ngx-log-mode library. The ngx-log-mode library is a simple logger for Angular applications. It provides a simple API to log messages to the console, localstorage or to a customizable RestAPI. The library is easy to use and can be installed via [npm](https://www.npmjs.com/package/@christophhu/ngx-log-mode).\n\n## Installation\nTo run this project, you need to have Node.js installed on your machine. Clone the repository and run the following commands:\n\n```bash\nnpm i @christophhu/ngx-log-mode\n```\n\n## Use\n### With default toggle\n```html\n\u003clog-mode\u003e\u003c/log-mode\u003e\n```\n\n### With custom toggle\n```html\n\u003clog-mode\u003e\n  \u003cinput type=\"checkbox\" name=\"log\" id=\"log\" (change)=\"toggleLog()\" [checked]=\"isLogActivated()\" class=\"cursor-pointer\"\u003e\n\u003c/log-mode\u003e\n```\n\n```typescript\nimport { LogDecorator, LogModeComponent, LogService } from '@christophhu/ngx-log-mode'\n\n@Component({\n  ...\n  imports: [\n    LogModeComponent\n  ],\n  providers: [\n    LogService\n  ]\n})\nexport class TestComponent {\n  private _logService: LogService\n  \n  constructor(@Inject(LogService) _logService: LogService) {\n    this._logService = _logService\n  }\n\n  // Log-Decorator to log the function call and the result with timestamp\n  @LogDecorator({ logType: 'info', input: false, output: false, timestamp: true })\n\n  toggleLog() {\n    this._logService.toggleLogActivate()\n  }\n  isLogActivated(): boolean {\n    return this._logService.isLogActivated()\n  }\n\n  logThis(param: string): void {\n    LogService.log('TemplateComponent', 'logThis()', ' param: ' + param)\n  }\n  logThis() {\n    LogService.debug('TemplateComponent', 'logDebug()')\n    LogService.info('TemplateComponent', 'logInfo()')\n    LogService.warn('TemplateComponent', 'logWarn()')\n    LogService.error('TemplateComponent', 'logError()')\n    LogService.fatal('TemplateComponent', 'logFatal()')\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristophhu%2Fngx-log-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristophhu%2Fngx-log-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristophhu%2Fngx-log-mode/lists"}