# logserver **Repository Path**: phgroup/logserver ## Basic Information - **Project Name**: logserver - **Description**: 适用于各种业务场景的远程日志服务器,默认端口6771,支持内网穿透。 支持日志跨日、超10M自动分片保存。 - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-06-28 - **Last Updated**: 2025-06-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # LoggerCenter A centralized logging management tool that supports real-time log viewing, log file management, and log server functionality. ## Features - Real-time reception and display of logs sent by clients - Support for log level classification (INFO, WARN, ERROR, etc.) - Graphical interface for log file operations - Automatic cleanup of expired log files - Support for log persistence storage ## Usage Instructions 1. The log server will automatically start after launching the application. 2. Send logs to the server using an HTTP request: ```bash curl -X POST http://localhost:8080/log -d '{"level":"INFO","message":"test log"}' ``` 3. The graphical interface allows you to: - View real-time logs - Load historical log files - Clean up logs - Refresh the log list ## Developer Information ### Main Components - `Form1.cs` - Main interface logic, including server implementation and UI interaction - `LogManager.cs` - Core log management class, responsible for log storage and cleanup - `LogEntry` - Definition of the log data model ## License This project is licensed under the MIT License. Please refer to the LICENSE file for details.