{"repo":"chickensoft-games/Log","free":true,"listed":false,"github":"https://github.com/chickensoft-games/Log","clone":"git clone https://github.com/chickensoft-games/Log.git","description":"Opinionated logging interface and implementations for C# applications and libraries.","language":"C#","stars":18,"topics":["chickensoft","logging"],"license":"MIT","category":"analytics","readme_excerpt":"🪵 Log [![Chickensoft Badge][chickensoft-badge]][chickensoft-website] [![Discord][discord-badge]][discord] [![Read the docs][read-the-docs-badge]][docs] ![line coverage][line-coverage] ![branch coverage][branch-coverage] Opinionated logging interface and implementations for C# applications and libraries. --- 📦 Installation [!TIP] For logging in Godot, see [Chickensoft.Log.Godot][log-godot]. Install the latest version of the [Chickensoft.Log] package from nuget: 🌱 Usage Essentials In Chickensoft.Log, messages are logged through the ILog interface. Each ILog has a name (often the name of the class using the ILog ), an ILogFormatter for formatting messages, and a collection of ILogWriter s, each responsible for directing log messages to one output. Setting up a Log The package includes a standard implementation of ILog , named Log . To create a log, instantiate a Log and give it a name and at least one writer: You can give the log multiple writers to obtain multiple outputs: Logging To log messages, use ILog 's methods Print() , Warn() , and Err() . Example: [!TIP] Some writers may have separate channels for warnings and errors, while others may not. For instance, the TraceWriter has separate channels for regular log messages, warnings, and errors. The FileWriter has only one channel, the file it's writing to. Warnings and errors can still be distinguished by the label the formatter gives them, even if directed to the same channel as regular log messages. Formatting Optionally","default_branch":null,"files":null,"tree":[],"storefront":"/r/chickensoft-games","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/chickensoft-games/Log/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}