using System; namespace Common.system { public class LogHelper { public static readonly log4net.ILog loginfo = log4net.LogManager.GetLogger("loginfo"); public static readonly log4net.ILog logerror = log4net.LogManager.GetLogger("logerror"); public static void WriteInfoLog(string info) { if (loginfo.IsInfoEnabled) { loginfo.Info(info); } } public static void WriteErrLog(string info, Exception ex) { if (logerror.IsErrorEnabled) { logerror.Error("[V " + FileToolsCommon.GetConfigValue("VersionName") + "]" + info, ex); } } } }