{"id":18319882,"url":"https://github.com/bitwalker/easylogger","last_synced_at":"2025-06-18T21:34:15.029Z","repository":{"id":6815505,"uuid":"8063518","full_name":"bitwalker/EasyLogger","owner":"bitwalker","description":"Simple and straightforward logging for .NET","archived":false,"fork":false,"pushed_at":"2013-02-07T04:23:04.000Z","size":2400,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-08T20:46:16.939Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://nuget.org/packages/EasyLogger","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/bitwalker.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}},"created_at":"2013-02-07T00:35:51.000Z","updated_at":"2013-12-21T18:43:33.000Z","dependencies_parsed_at":"2022-09-21T00:21:36.529Z","dependency_job_id":null,"html_url":"https://github.com/bitwalker/EasyLogger","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/bitwalker%2FEasyLogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2FEasyLogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2FEasyLogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2FEasyLogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitwalker","download_url":"https://codeload.github.com/bitwalker/EasyLogger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054213,"owners_count":21039954,"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":[],"created_at":"2024-11-05T18:14:34.638Z","updated_at":"2025-04-09T14:23:08.834Z","avatar_url":"https://github.com/bitwalker.png","language":"C#","readme":"# EasyLogger\r\n\r\nEasyLogger is a small wrapper library for NLog. It makes it incredibly easy to jump in to developing your application\r\nwith logging facilities ready to go with virtually no configuration. Out of the box, EasyLogger will log to both the\r\nconsole and to a dated file in a `logs` subdirectory in the directory your application executes in. Since EasyLogger\r\nwraps NLog, you can modify the way logging is performed using the NLog.config file that is added to your application.\r\n\r\n## Features\r\n\r\n- Logs by default show the date and time, the type that called the logger, and the the message prefixed by the name\r\n  of the method which called the logger. This gives you just about everything you need at a glance.\r\n- Logging is fully configurable using the NLog config file, EasyLogger attempts to stay out of your way, and only\r\n  enhances the default NLog logging facilities.\r\n- All log methods at a minimum provide built in string formatting (format string and unlimited object arguments).\r\n\r\n## Examples\r\n\r\nUsing the snippet below:\r\n\r\n```csharp\r\n\r\nusing EasyLogger;\r\npublic class Database\r\n{\r\n\tprivate Log Logger { get; set;}\r\n\r\n\tpublic Database() \r\n\t{\r\n\t\tLogger = Log.Get\u003cDatabase\u003e();\r\n\t}\r\n\r\n\tpublic void Init()\r\n\t{\r\n\t\tLogger.Trace(\"Entering\");\r\n\r\n\t\t// do stuff\r\n\t\tLogger.Debug(\"Doing database stuff with these things: Name: {0}, ConnectionString: {1}\", this.DatabaseName, this.ConnectionString);\r\n\r\n\t\tLogger.Trace(\"Exiting\");\r\n\t}\r\n}\r\n\r\n```\r\n\r\nThis would be the expected logging output:\r\n\r\n```\r\n\r\n2013-02-06 22:03:32.7545 | TRACE | Database | Init: Entering\r\n2013-02-06 22:03:33.7845 | DEBUG | Database | Init: Doing database stuff with these things: Name: Pies, ConnectionString: http://localhost:8080\r\n2013-02-06 22:06:34.8361 | TRACE | Database | Init: Exiting\r\n\r\n```\r\n\r\nYour best bet is to install the NuGet package: `install-package EasyLogger`, and explore the API yourself! It's very straightforward.\r\n\r\n## License\r\n\r\nThe MIT License (MIT)\r\nCopyright (c) 2013 Paul Schoenfelder\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitwalker%2Feasylogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitwalker%2Feasylogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitwalker%2Feasylogger/lists"}