using System.Collections.ObjectModel; using PersonalToolBox.Models; namespace PersonalToolBox.Services; /// /// 日志服务接口,管理底部日志打印栏的数据 /// public interface ILogService { /// /// 日志条目集合,绑定到 UI 的 ObservableCollection /// ObservableCollection Logs { get; } /// /// 记录普通信息日志 /// void Info(string message); /// /// 记录警告日志 /// void Warning(string message); /// /// 记录错误日志 /// void Error(string message); /// /// 清空所有日志 /// void Clear(); }