{"id":19991989,"url":"https://github.com/huanent/Logging","last_synced_at":"2025-05-04T11:30:31.678Z","repository":{"id":98268201,"uuid":"89191490","full_name":"huanent/Logging","owner":"huanent","description":"microsoft.extensions.logging日志组件拓展","archived":false,"fork":false,"pushed_at":"2024-08-27T01:37:06.000Z","size":384,"stargazers_count":33,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-08T00:43:34.178Z","etag":null,"topics":["asp-net-core","dotnetcore","logging","netcore2"],"latest_commit_sha":null,"homepage":"","language":"C#","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/huanent.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-24T02:55:25.000Z","updated_at":"2024-08-27T01:37:10.000Z","dependencies_parsed_at":"2024-11-13T04:54:39.912Z","dependency_job_id":"5b760981-8a55-4687-b3cb-47a71532c137","html_url":"https://github.com/huanent/Logging","commit_stats":null,"previous_names":["huanent/huanent.logging"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huanent%2FLogging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huanent%2FLogging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huanent%2FLogging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huanent%2FLogging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huanent","download_url":"https://codeload.github.com/huanent/Logging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252329085,"owners_count":21730547,"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":["asp-net-core","dotnetcore","logging","netcore2"],"created_at":"2024-11-13T04:52:00.083Z","updated_at":"2025-05-04T11:30:31.319Z","avatar_url":"https://github.com/huanent.png","language":"C#","funding_links":[],"categories":["C\\#"],"sub_categories":[],"readme":"# Microsoft.Extensions.Logging extensions\n## Install\n[![Nuget](https://img.shields.io/nuget/v/Huanent.Logging.Core?label=Core\u0026style=for-the-badge)](https://www.nuget.org/packages/Huanent.Logging.Core/)\n[![Nuget](https://img.shields.io/nuget/v/Huanent.Logging.File?label=File\u0026style=for-the-badge)](https://www.nuget.org/packages/Huanent.Logging.File/)\n\n\n## Usage\n\n### Huanent.Logging.Core\n\n```\npublic class ConsoleLogWriter : ILogWriter\n{\n    public void WriteLog(LogLevel level, string message, string name, Exception exception, EventId eventId)\n    {\n        Console.WriteLine($\"From {nameof(ConsoleLogWriter)} {level} {message} {name} {exception} {eventId}\");\n    }\n}\n\n//ILoggingBuilder\nlogging.AddImplementation\u003cConsoleLogWriter\u003e();\n```\n\n### Huanent.Logging.File\n\n```\n//ILoggingBuilder\nlogging.AddFile();\n```\nLog will out in {application folder}/logs/20211020.txt\n```\n[Error] [LoggingFileSample.Worker] [0] [2021/10/20 01:05:35 +00:00]\nWorker running at: 10/20/2021 21:05:35 +08:00\nSystem.Exception: error\n\n[Error] [LoggingFileSample.Worker] [0] [2021/10/20 01:05:36 +00:00]\nWorker running at: 10/20/2021 21:05:36 +08:00\nSystem.Exception: error\n\n[Error] [LoggingFileSample.Worker] [0] [2021/10/20 01:05:37 +00:00]\nWorker running at: 10/20/2021 21:05:37 +08:00\nSystem.Exception: error\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuanent%2FLogging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuanent%2FLogging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuanent%2FLogging/lists"}