PWMIS.Core/DataProvider/CommandLog.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
* ========================================================================
* Copyright(c) 2006-2010 PWMIS, All Rights Reserved.
* Welcom use the PDF.NET (PWMIS Data Process Framework).
* See more information,Please goto http://www.pwmis.com/sqlmap
* ========================================================================
* 该类的作用
*
* 作者:邓太华 时间:2008-10-12
* 版本:V3.0
*
* 修改者: 时间:2010-4-13
* 修改说明: 增加适时查看执行的SQL属性 CommandText
* ========================================================================
*/
using System;
using System.IO ;
using System.Data ;
using PWMIS.Core;
namespace PWMIS.DataProvider.Data
{
/// <summary>
/// 命令对象日志2008.7.18 增加线程处理,2011.5.9 增加执行时间记录
/// </summary>
public class CommandLog
{
//日志相关
private static string _dataLogFile;
/// <summary>
/// 获取或者设置日志文件的路径,可以带Web相对路径
/// </summary>
public static string DataLogFile
{
get {
if (string.IsNullOrEmpty(_dataLogFile))
{
_dataLogFile = System.Configuration.ConfigurationSettings.AppSettings["DataLogFile"];
if (!string.IsNullOrEmpty(_dataLogFile))
{
CommonUtil.ReplaceWebRootPath(ref _dataLogFile);
string temp = System.Configuration.ConfigurationSettings.AppSettings["SaveCommandLog"];
if(temp != null)
_saveCommandLog = temp.ToUpper() == "TRUE";
}
}
return _dataLogFile;
}
set { _dataLogFile = value; }
}
private static bool _saveCommandLog;
/// <summary>
/// 是否记录日志文件
/// </summary>
public static bool SaveCommandLog
{
get {
string temp = DataLogFile;//必须先调用下,以计算_saveCommandLog
return _saveCommandLog;
后面还有 215 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
