{"id":28558229,"url":"https://github.com/ysden123/dotnetlogging","last_synced_at":"2026-05-03T07:33:13.827Z","repository":{"id":297768356,"uuid":"997298101","full_name":"ysden123/DotNetLogging","owner":"ysden123","description":"Playing with some logging packets for projects on C#.","archived":false,"fork":false,"pushed_at":"2025-06-07T10:04:53.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-07T11:18:54.277Z","etag":null,"topics":["csharp","dotnet","logging","playing"],"latest_commit_sha":null,"homepage":"","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/ysden123.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}},"created_at":"2025-06-06T09:38:36.000Z","updated_at":"2025-06-07T10:04:57.000Z","dependencies_parsed_at":"2025-06-07T11:19:04.980Z","dependency_job_id":null,"html_url":"https://github.com/ysden123/DotNetLogging","commit_stats":null,"previous_names":["ysden123/dotnetlogging"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ysden123%2FDotNetLogging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ysden123%2FDotNetLogging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ysden123%2FDotNetLogging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ysden123%2FDotNetLogging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ysden123","download_url":"https://codeload.github.com/ysden123/DotNetLogging/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ysden123%2FDotNetLogging/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259033839,"owners_count":22795771,"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":["csharp","dotnet","logging","playing"],"created_at":"2025-06-10T08:08:17.226Z","updated_at":"2026-05-03T07:33:13.823Z","avatar_url":"https://github.com/ysden123.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DotNetLogging\n\nPlaying with some logging packets for projects on C#.\n\n## PNLog\n\nExamples of using the NLog package.\n\n## PSerilog\n\nExamples of using the Serilog package.\n\n## PSerilogWOInit\n\nExamples of using the Serilog package without the logger initialization.\nThe SilentLogger will be used and no output will be performed.\n\nThis refers to situations where you call Log.Information(),\nLog.Warning(), etc., without first setting Log.Logger = new\nLoggerConfiguration().CreateLogger();\n\nSerilog is designed to be robust. If Log.Logger hasn’t been explicitly\nconfigured, it falls back to a default \"`no-op`\" logger.\n\nThe default \"`no-op`\" logger that Serilog uses when it hasn’t been\ninitialized is indeed called SilentLogger.\n\nAs its name implies, SilentLogger does not write any logs to any sink\n(console, file, etc.). It effectively swallows all log events.\n\nWhy this behavior exists and why it’s useful:\n\n* Robustness in Libraries: If you’re building a library that uses Serilog\nfor its internal logging, you don’t want to force the consuming\napplication to configure Serilog. If they don’t configure it, your\nlibrary’s logging will simply be silent, without causing errors or\nunexpected output.\n\n* Early Application Startup: Sometimes, you might have code that runs very\nearly in your application’s lifecycle, even before your main Serilog\nconfiguration is set up. In such cases, if you attempt to log, Serilog\nwill gracefully use the SilentLogger until the full configuration is in\nplace.\n\n* Testing: In unit tests, you often don’t want your tests to produce\nactual log output. If your code uses Log.Information() directly and you\ndon’t initialize Serilog in your tests, it will use SilentLogger,\nkeeping your test output clean.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fysden123%2Fdotnetlogging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fysden123%2Fdotnetlogging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fysden123%2Fdotnetlogging/lists"}