You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.2 KiB

3 years ago
using System;
using System.Windows.Forms;
namespace EC.AutoWeightServer.UI.Base
{
public partial class FrmBase : Form
{
public FrmBase()
{
InitializeComponent();
}
#region 日志
/// <summary>
/// Debug 日志
/// </summary>
/// <param name="message"></param>
public void LogDebug(string message)
{
LogUnit.Debug(this.GetType(), message);
}
/// <summary>
/// Info 日志
/// </summary>
/// <param name="message"></param>
public void LogInfo(string message)
{
LogUnit.Info(this.GetType(), message);
}
/// <summary>
/// Error 日志
/// </summary>
/// <param name="message"></param>
public void LogError(string message)
{
LogUnit.Error(this.GetType(), message);
}
/// <summary>
/// Debug 日志
/// </summary>
/// <param name="ex"></param>
public void LogDebug(Exception ex)
{
LogUnit.Debug(this.GetType(), ex);
}
/// <summary>
/// Info 日志
/// </summary>
/// <param name="ex"></param>
public void LogInfo(Exception ex)
{
LogUnit.Info(this.GetType(), ex);
}
/// <summary>
/// Error 日志
/// </summary>
/// <param name="ex"></param>
public void LogError(Exception ex)
{
LogUnit.Error(this.GetType(), ex);
}
#endregion 日志
}
}