📄 logfactory.cs
字号:
namespace PowerEasy.Logging
{
using System;
using System.Reflection;
public sealed class LogFactory
{
private static readonly string path = WebConfigurationManager.AppSettings["LogFactoryName"];
private LogFactory()
{
}
public static ILog CreateLog()
{
string typeName = "PowerEasy.Logging." + path;
return (ILog) Assembly.Load("PowerEasy.Logging").CreateInstance(typeName);
}
public static ILog CreateLog(LogType logType)
{
switch (logType)
{
case LogType.System:
return new DBLog();
case LogType.Files:
return new DBLog();
}
return new DBLog();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -