mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
23 lines
512 B
C#
23 lines
512 B
C#
using System;
|
|
using System.IO;
|
|
|
|
namespace Netch.Utils
|
|
{
|
|
public static class Logging
|
|
{
|
|
/// <summary>
|
|
/// 换行
|
|
/// </summary>
|
|
public static string EOF = "\r\n";
|
|
|
|
/// <summary>
|
|
/// 信息
|
|
/// </summary>
|
|
/// <param name="text">内容</param>
|
|
public static void Info(string text)
|
|
{
|
|
File.AppendAllText("logging\\application.log", string.Format("[{0}] {1}{2}", DateTime.Now, text, EOF));
|
|
}
|
|
}
|
|
}
|