星火微课系统客户端
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.

4 jaren geleden
4 jaren geleden
4 jaren geleden
12345678910111213141516171819202122232425
  1. using System;
  2. namespace Common.system
  3. {
  4. public class LogHelper
  5. {
  6. public static readonly log4net.ILog loginfo = log4net.LogManager.GetLogger("loginfo");
  7. public static readonly log4net.ILog logerror = log4net.LogManager.GetLogger("logerror");
  8. public static void WriteInfoLog(string info)
  9. {
  10. if (loginfo.IsInfoEnabled)
  11. {
  12. loginfo.Info(info);
  13. }
  14. }
  15. public static void WriteErrLog(string info, Exception ex)
  16. {
  17. if (logerror.IsErrorEnabled)
  18. {
  19. logerror.Error("[V " + FileToolsCommon.GetConfigValue("VersionName") + "]" + info, ex);
  20. }
  21. }
  22. }
  23. }