{"id":21405819,"url":"https://github.com/memona008/modulerepository","last_synced_at":"2025-07-06T13:05:39.592Z","repository":{"id":57173491,"uuid":"208016180","full_name":"memona008/ModuleRepository","owner":"memona008","description":"Custom SPFx Logger Package helps you storing logs in Sharepoint list.","archived":false,"fork":false,"pushed_at":"2019-09-23T11:31:36.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-25T22:40:53.839Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/memona008.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":"2019-09-12T09:42:10.000Z","updated_at":"2020-04-01T14:27:13.000Z","dependencies_parsed_at":"2022-08-24T13:31:09.215Z","dependency_job_id":null,"html_url":"https://github.com/memona008/ModuleRepository","commit_stats":null,"previous_names":["k112433/modulerepository"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/memona008/ModuleRepository","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memona008%2FModuleRepository","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memona008%2FModuleRepository/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memona008%2FModuleRepository/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memona008%2FModuleRepository/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/memona008","download_url":"https://codeload.github.com/memona008/ModuleRepository/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memona008%2FModuleRepository/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263905739,"owners_count":23527971,"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-11-22T16:28:31.574Z","updated_at":"2025-07-06T13:05:39.540Z","avatar_url":"https://github.com/memona008.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spfx_logger\n\nspfx_logger is a library which is used to log into your sharepoint through code. \n\n## Installation\n\nUse npm to install this package\n\n```bash\nnpm install spfx_logger\n```\n\n## Usage\n\n```node\nimport LoggerHelper from 'spfx_logger';\n\nlet _logger = new LoggerHelper();\n\n_logger.Initalize(\"custom_log_list\");\n\n/* Note: If list with said name doesn't exist Initilize() method will \ncreate a new list in SharePoint for Logs\n*/\n\n\n\n\n// After logger initialization you can Log anything in your sharepoint list\nlet obj:ILogger = {};\nobj = {\nErrorMessage: \"It is error message\",\nErrorDetails: \"These are error details\",\nExtype: \"Error\",\n PageURL: \"https:\\\\contoso.sharepoint.com\\test\\Pages\\Get.aspx\",\n  FileName: \"ListService.ts\",\n  Method: \"GetItems()\",\n  UserId: 1,\n  JSON: '{\"error\":\"it is exception\",\"message\":\"it is error message\"}',\n  ProgrammeID: 1,\n  StatusCode: 404\n}\n\n_logger.Log(obj);\n// this method will log your error in the initialized List \n```\n\n## Interface \n```node\n/* The interface which is used to store the Log Object is ILogger\nNote: All columns are optional \n */\ninterface ILogger {\n  PageURL?: string;\n  FileName?: string;\n  Method?: string;\n  UserId?: any;\n  Extype?: any;\n  ErrorMessage?: string;\n  ErrorDetails?: string;\n  JSON?: string;\n  ProgrammeID?: number;\n  StatusCode?: number;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemona008%2Fmodulerepository","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmemona008%2Fmodulerepository","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemona008%2Fmodulerepository/lists"}