{"id":28997815,"url":"https://github.com/open-net-libraries/open.logging","last_synced_at":"2026-03-06T07:01:56.535Z","repository":{"id":294581417,"uuid":"987426924","full_name":"Open-NET-Libraries/Open.Logging","owner":"Open-NET-Libraries","description":"Utilities and extensions for simplifying .NET logging.","archived":false,"fork":false,"pushed_at":"2025-06-04T18:01:27.000Z","size":454,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-18T02:15:13.359Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/Open-NET-Libraries.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-21T04:09:18.000Z","updated_at":"2025-06-04T18:01:28.000Z","dependencies_parsed_at":"2025-06-25T06:34:38.831Z","dependency_job_id":"1943529f-4d2d-459c-bd9e-fe32f7371d9b","html_url":"https://github.com/Open-NET-Libraries/Open.Logging","commit_stats":null,"previous_names":["electricessence/open.logging","open-net-libraries/open.logging"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Open-NET-Libraries/Open.Logging","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-NET-Libraries%2FOpen.Logging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-NET-Libraries%2FOpen.Logging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-NET-Libraries%2FOpen.Logging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-NET-Libraries%2FOpen.Logging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Open-NET-Libraries","download_url":"https://codeload.github.com/Open-NET-Libraries/Open.Logging/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-NET-Libraries%2FOpen.Logging/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30164885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T04:43:31.446Z","status":"ssl_error","status_checked_at":"2026-03-06T04:40:30.133Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2025-06-25T06:30:53.826Z","updated_at":"2026-03-06T07:01:56.483Z","avatar_url":"https://github.com/Open-NET-Libraries.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Open.Logging\n\nA lightweight set of .NET libraries that enhances the standard logging infrastructure with additional formatters and extensions.\n\n[![NuGet](https://img.shields.io/nuget/v/Open.Logging.Extensions.svg?label=NuGet)](https://www.nuget.org/packages/Open.Logging.Extensions/)\n\n## Features\n\n- Seamless integration with Microsoft.Extensions.Logging\n- Beautiful console output through Spectre Console integration\n- Customizable log formatting and styling\n- Support for log scopes and context\n- Thread-safe logging operations\n- Exception formatting and display\n\n## Installation\n\n```sh\ndotnet add package Open.Logging.Extensions\n```\nor for more colorful output:\n```sh\ndotnet add package Open.Logging.Extensions.SpectreConsole\n```\n\n\n## Usage\n\n### Basic Setup\n\n```csharp\nusing Microsoft.Extensions.Logging;\nusing Open.Logging.Extensions.SpectreConsole;\n\n// Add to your service collection\nservices.AddLogging(builder =\u003e\n{\n    builder.AddSimpleSpectreConsole();\n});\n\n// Inject and use\npublic class MyService\n{\n    private readonly ILogger\u003cMyService\u003e _logger;\n    \n    public MyService(ILogger\u003cMyService\u003e logger)\n    {\n        _logger = logger;\n    }\n    \n    public void DoSomething()\n    {\n        _logger.LogInformation(\"Operation started\");\n        // ...\n    }\n}\n```\n\n### Customizing Log Level Labels\n\n```csharp\nvar customLabels = new LogLevelLabels\n{\n    Information = \"INFO\",\n    Warning = \"ATTENTION\",\n    Error = \"PROBLEM\"\n};\n\nservices.AddLogging(builder =\u003e\n{\n    builder.AddSimpleSpectreConsole(options =\u003e\n    {\n        options.Labels = customLabels;\n    });\n});\n```\n\n### Custom Theming\n\n```csharp\nvar theme = new SpectreConsoleLogTheme\n{\n    // Configure colors and styles\n};\n\nservices.AddLogging(builder =\u003e\n{\n    builder.AddSpectreConsole(options =\u003e\n    {\n        options.Theme = theme;\n    });\n});\n```\n\n## Requirements\n\nThese may expand in the future.  If anyone needs legacy support, please fill out an request in the repo on GitHub.\n\n- .NET 9.0\n- C# 13.0\n\n## License\n\nMIT License - see the LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-net-libraries%2Fopen.logging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-net-libraries%2Fopen.logging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-net-libraries%2Fopen.logging/lists"}