{"id":21467104,"url":"https://github.com/digitalrmdy/serilog.sink.caching","last_synced_at":"2025-04-22T18:47:06.831Z","repository":{"id":38090095,"uuid":"241862986","full_name":"digitalrmdy/Serilog.Sink.Caching","owner":"digitalrmdy","description":"Caching sink for serilog","archived":false,"fork":false,"pushed_at":"2022-12-08T09:47:04.000Z","size":241,"stargazers_count":1,"open_issues_count":10,"forks_count":1,"subscribers_count":8,"default_branch":"develop","last_synced_at":"2025-04-13T10:17:27.979Z","etag":null,"topics":["caching","csharp","nuget-package","serilog","sinks","xamarin"],"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/digitalrmdy.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}},"created_at":"2020-02-20T11:05:28.000Z","updated_at":"2020-11-23T23:09:50.000Z","dependencies_parsed_at":"2023-01-25T00:45:53.892Z","dependency_job_id":null,"html_url":"https://github.com/digitalrmdy/Serilog.Sink.Caching","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalrmdy%2FSerilog.Sink.Caching","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalrmdy%2FSerilog.Sink.Caching/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalrmdy%2FSerilog.Sink.Caching/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalrmdy%2FSerilog.Sink.Caching/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitalrmdy","download_url":"https://codeload.github.com/digitalrmdy/Serilog.Sink.Caching/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250301304,"owners_count":21408145,"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":["caching","csharp","nuget-package","serilog","sinks","xamarin"],"created_at":"2024-11-23T08:16:36.898Z","updated_at":"2025-04-22T18:47:06.792Z","avatar_url":"https://github.com/digitalrmdy.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serilog.Sink.Cache\n\nCaching Sink for Serilog\nThis Sink forwards all LogEvents to its output sinks when there is an available network connection.\nWhen there is no connection to the internet, all LogEvents are stored in a local database and forwarded as soon as a network connection is detected.\n\n[![NuGet Badge](https://buildstats.info/nuget/serilog.sink.cache)](https://www.nuget.org/packages/Serilog.Sink.Cache/)\n[![Build Status](https://app.bitrise.io/app/b8ab60d5eddce15a/status.svg?token=kBuN-dQKUhDpaOp0ntsBSw\u0026branch=master)](https://app.bitrise.io/app/b8ab60d5eddce15a)\n[![CodeFactor](https://www.codefactor.io/repository/github/digitalrmdy/serilog.sink.caching/badge)](https://www.codefactor.io/repository/github/digitalrmdy/serilog.sink.caching)\n[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=digitalrmdy_Serilog.Sink.Caching\u0026metric=code_smells)](https://sonarcloud.io/dashboard?id=digitalrmdy_Serilog.Sink.Caching)\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=digitalrmdy_Serilog.Sink.Caching\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=digitalrmdy_Serilog.Sink.Caching)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=digitalrmdy_Serilog.Sink.Caching\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=digitalrmdy_Serilog.Sink.Caching)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=digitalrmdy_Serilog.Sink.Caching\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=digitalrmdy_Serilog.Sink.Caching)\n[![Dependabot Status](https://api.dependabot.com/badges/status?host=github\u0026repo=digitalrmdy/Serilog.Sink.Caching)](https://dependabot.com)\n\n\n## Usage\n\n```\nLog.Logger = new LoggerConfiguration()\n    .WithCache(\"connectionString\")\n        .AddSink(new ConsoleSink(...)          // cache when offline\n        .BuildCaching()\n    .WriteTo().Console()    // always log here\n    .CreateLogger();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalrmdy%2Fserilog.sink.caching","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalrmdy%2Fserilog.sink.caching","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalrmdy%2Fserilog.sink.caching/lists"}