using System;
using System.IO;
namespace Netch.Utils
{
public static class Logging
{
///
/// 信息
///
/// 内容
public static void Info(string text)
{
File.AppendAllText("logging\\application.log", $@"[{DateTime.Now}][INFO] {text}{Global.EOF}");
}
///
/// 错误
///
/// 内容
public static void Error(string text)
{
File.AppendAllText("logging\\application.log", $@"[{DateTime.Now}][ERROR] {text}{Global.EOF}");
}
}
}