{"id":22616609,"url":"https://github.com/amccool/lib-eslogger","last_synced_at":"2025-10-18T06:21:22.408Z","repository":{"id":137291759,"uuid":"121875377","full_name":"amccool/lib-eslogger","owner":"amccool","description":"An implementation of ILogger that logs to Elastic Search.","archived":false,"fork":false,"pushed_at":"2019-11-01T20:16:32.000Z","size":14,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T00:44:23.443Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":false,"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/amccool.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}},"created_at":"2018-02-17T17:19:41.000Z","updated_at":"2018-03-22T19:35:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"3a39abea-8409-4842-a364-144711f9ef92","html_url":"https://github.com/amccool/lib-eslogger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amccool/lib-eslogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amccool%2Flib-eslogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amccool%2Flib-eslogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amccool%2Flib-eslogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amccool%2Flib-eslogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amccool","download_url":"https://codeload.github.com/amccool/lib-eslogger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amccool%2Flib-eslogger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001051,"owners_count":26082991,"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-10-09T02:00:07.460Z","response_time":59,"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":[],"created_at":"2024-12-08T19:13:30.635Z","updated_at":"2025-10-09T08:38:15.553Z","avatar_url":"https://github.com/amccool.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lib-eslogger\nAn implementation of ILogger that logs to Elastic Search.  A large chunk of code was borrowed from [here](https://github.com/DaniJG/ELKLogging).\n\nSee example for usage.\n\n## Install\n\nInstall the nuget package `Outreach.ESLogger` or add a reference in your csproj and run `dotnet restore`.\n\n```\n\u003cPackageReference Include=\"Outreach.ESLogger\" Version=\"1.0.0\"/\u003e\n```\n\n## Usage\n\nIn `Startup.cs` put the using at the top.\n\n```\nusing Outreach.ESLogger;\n```\n\nThen configure it like so.\n\n```\n        public void ConfigureServices(IServiceCollection services)\n        {\n            services.ConfigureESLogger(Configuration.GetSection(\"ElasticSearch\"));\n            \n            // The rest...\n        }\n\n        public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)\n        {\n            loggerFactory.AddConsole(Configuration.GetSection(\"Logging\"))\n                         .AddDebug()\n                         .AddESLogger(app.ApplicationServices, \"log-\");\n            \n            // The rest...\n        }\n```\n\nAnd be sure to have a section in your `appsettings.json` for `ElasticSearch`\n\n```\n{\n    \"ElasticSearch\": {\n        \"Uri\": \"http://localhost:9200/\",\n        \"DefaultIndex\": \"default-\",\n        \"UserName\": null,\n        \"Password\": null\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famccool%2Flib-eslogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famccool%2Flib-eslogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famccool%2Flib-eslogger/lists"}