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