{"id":21100733,"url":"https://github.com/aditya119/configurablelogger","last_synced_at":"2026-04-27T17:01:56.047Z","repository":{"id":131223903,"uuid":"321734369","full_name":"aditya119/ConfigurableLogger","owner":"aditya119","description":"An easy-to-use and configurable logger","archived":false,"fork":false,"pushed_at":"2020-12-24T12:10:50.000Z","size":50,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-31T05:00:31.377Z","etag":null,"topics":["csharp-library","dotnet5","logger","nuget-package"],"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/aditya119.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":"2020-12-15T17:05:03.000Z","updated_at":"2024-02-18T13:37:54.000Z","dependencies_parsed_at":"2023-03-23T21:24:45.659Z","dependency_job_id":null,"html_url":"https://github.com/aditya119/ConfigurableLogger","commit_stats":null,"previous_names":["aditya119/loggerlibrary"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/aditya119/ConfigurableLogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aditya119%2FConfigurableLogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aditya119%2FConfigurableLogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aditya119%2FConfigurableLogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aditya119%2FConfigurableLogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aditya119","download_url":"https://codeload.github.com/aditya119/ConfigurableLogger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aditya119%2FConfigurableLogger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32345816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":["csharp-library","dotnet5","logger","nuget-package"],"created_at":"2024-11-19T23:28:26.754Z","updated_at":"2026-04-27T17:01:56.030Z","avatar_url":"https://github.com/aditya119.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"![.NET](https://github.com/aditya119/ConfigurableLogger/workflows/.NET/badge.svg)\n# Configurable Logger\n\nConfigurableLogger is an easy-to-use, and configurable logger.\nIt supports both synchronous and asynchronous logging.\n\n---\n\n### Installation\n\nConfigurableLogger can be installed from Nuget.\n\n---\n\n### Setup\n\nAdd `LogConfigModel` as a singleton service to provide required configurations.\n- `LogConfigModel.LogLevel` can have value \"Error\", \"Information\", or \"Debug\".\n- `LogConfigModel.LogFolder` stores the path to folder where log files will be stored. Use \"@Console\" to log to console.\n- `LogConfigModel.LogFilenamePrefix` stores a prefix for the generated log files. Default is set to \"app\". Sample log file name `app_16-Dec-2020.log`.\n\nUse `services.AddConfigurableLogger(logConfigModel)` in `Startup.ConfigureServices`.\n\nInject `ILoggingService` where necessary and log data.\n\n### Usage\n\n#### Methods:\n- `void LogDebug(string message)`\n- `void LogDebug\u003cT\u003e(string message, T model) where T : class`: Logs a serialization of the passed class along with the message\n- `Task LogDebugAsync(string message)`\n- `Task LogDebugAsync\u003cT\u003e(string message, T model) where T : class`\n- `void LogInformation(string message)`\n- `Task LogInformationAsync(string message)`\n- `void LogError(Exception exception)`: Logs the details and stack-trace of the exception passed as parameter.\n- `Task LogErrorAsync(Exception exception)`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faditya119%2Fconfigurablelogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faditya119%2Fconfigurablelogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faditya119%2Fconfigurablelogger/lists"}