public interface ILogger
{}
public interface ILoggerWrapper
{
ILogger Logger {get;}
}
public interface ILog : IloggerWrapper //继承IloggerWrapper 这个接口
{
bool IsErrorEnabled {get;}
void Error(object message);
} public class SysLog
{
public static readonly ILog logerror;// 创建ILog对象,
static SysLog() //构造函数
{
if (logerror == null)
{
logerror = LogManager.GetLogger("logerror");
}
}
public static void WriteErrorLog(string info)
{
if (logerror.IsErrorEnabled) // logerror
{
logerror.Error(info); / //////这代码 有啥作用?????
}
}
}

最新文章

  1. Day11-协程/异步IO/RabbitMQ
  2. Linux 平台安装Oracle Database 12c
  3. [UML]UML系列——用例图中的各种关系(include、extend)
  4. Jmeter 简单用法
  5. An error in projects
  6. Evolutionary Computing: 4. Review
  7. HDU 4902 Nice boat --线段树(区间更新)
  8. EnableViewState=“false”不能乱用啊
  9. lua序列化(支持循环引用)
  10. UINavigationController(转)
  11. Educational Codeforces Round 15 Cellular Network
  12. 解决lucene 重复索引的问题
  13. Eclipse的设置小细节提高开发效率
  14. div(固定宽度和不固定宽度)居中显示的方法总结
  15. 初学JavaScript须知道的七件事
  16. Android学习笔记:多个AsyncTask实例的并发问题
  17. C++学习笔记9-运算符重载
  18. 程序员网站开发时应该注意的SEO问题
  19. centos6.8 docker0: iptables: No chain/target/match by that name
  20. Caused by: java.sql.SQLException: ResultSet is from UPDATE. No Data.

热门文章

  1. Nginx 重写规则指南1
  2. AWR and ADDM
  3. ubuntu下安装jre
  4. .NET 复制A对象值到B对象
  5. word设置
  6. 【C语言】不使用大小于号,求出两数最大值
  7. Getting console.log output with Selenium Python API bindings
  8. 主表a主表b 从表c中有ab两个表中各一个字段a1,b1 从表d中有ab两个表中各一个字段a2,b2
  9. java异步编程
  10. [置顶] Snow的追寻