Logging

Community

Automate robust, thread-safe UTF-8 file logging.

Authorlawless-m
Version1.0.0
Installs0

System Documentation

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".

Dependency Matrix

Required Modules

Microsoft.Extensions.Logging

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Logging
Download link: https://github.com/lawless-m/claude-skills/archive/main.zip#logging

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository