What problem does it solves?
This Skill provides a standardized, robust, and thread-safe logging solution for C# RocsMiddleware services, eliminating the need to re-implement complex logging logic. It ensures consistent UTF-8 encoding, automatic daily file rotation, and reliable error handling, saving developers time and reducing debugging complexity.
Core Features & Use Cases
- UTF-8 Encoding & Rotation: Automatically creates UTF-8 encoded log files with daily date-based rotation (
{ProgramName}_YYYY_MM_DD.log).
- Thread-Safe Writes: Ensures safe concurrent logging from multiple threads using internal locking mechanisms.
- Smart Path Handling: Intelligently detects and handles log directory paths, simplifying configuration.
- Use Case: Integrate this logging skill into any new or existing C# service to immediately gain consistent, reliable, and easily manageable log outputs for monitoring and debugging, especially in high-concurrency environments.
Quick Start
Use the Logging skill to set up UTF-8 file logging for my C# service, ensuring logs are rotated daily and saved to "C:\MyService\Logs".