2 Star 0 Fork 0

FastTunnel / WindowsSeviceTool

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
LogHelper.cs 920 Bytes
Copy Edit Web IDE Raw Blame History
Gui.H authored 2017-12-27 15:07 . InitializeComponent
using log4net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service
{
public class LogHelper
{
private static ILog m_log { get { return LogManager.GetLogger("Common"); } }
public static void Info(object message)
{
m_log.Info(message);
}
public static void Debug(object message)
{
m_log.Debug(message);
}
public static void Error(Exception message)
{
m_log.Error(message);
}
public static void Error(string message)
{
Type type = System.Reflection.MethodBase.GetCurrentMethod().DeclaringType;
m_log.Error(type);
m_log.Error(message);
}
public static void Fatal(object message)
{
m_log.Fatal(message);
}
}
}

Comment ( 0 )

Sign in for post a comment

C#
1
https://gitee.com/Hgui/WindowsSeviceTool.git
git@gitee.com:Hgui/WindowsSeviceTool.git
Hgui
WindowsSeviceTool
WindowsSeviceTool
master

Search