This repository has been archived on 2026-08-05. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
biss f61e298871
Build and Release / Publish Windows, Linux and macOS (push) Successful in 3m7s
Migrate desktop app to Avalonia and publish cross-platform releases
2026-07-19 08:51:41 +08:00

20 lines
428 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace kcsj.Services
{
public static class LogService
{
public static event Action<string>? OnLog;
public static void AddLog(string message)
{
string time = DateTime.Now.ToString("HH:mm:ss");
OnLog?.Invoke($"[{time}] {message}");
}
}
}