개정판 48c66f9a
Fix: KCOM_API에 log4net 적용
Change-Id: I61151b3dbb18e758d90b8afed46e63f8be2ee26a
KCOM_API/KCOM_API.csproj | ||
---|---|---|
111 | 111 |
<Content Include="Web.config"> |
112 | 112 |
<SubType>Designer</SubType> |
113 | 113 |
</Content> |
114 |
<Content Include="Log.config"> |
|
115 |
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
|
116 |
</Content> |
|
114 | 117 |
<None Include="obfuscar.xml" /> |
115 | 118 |
<Content Include="ServiceDeepView.svc" /> |
116 | 119 |
<None Include="Web.Debug.config"> |
KCOM_API/ServiceDeepView.svc.cs | ||
---|---|---|
18 | 18 |
using System.Xml; |
19 | 19 |
using ColorSelector; |
20 | 20 |
using Newtonsoft.Json.Linq; |
21 |
using log4net.Repository.Hierarchy; |
|
22 |
using log4net; |
|
23 |
using System.IO; |
|
21 | 24 |
|
25 |
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Log.config", Watch = true)] |
|
22 | 26 |
namespace KCOM_API |
23 | 27 |
{ |
24 | 28 |
// NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "ServiceDeepView" in code, svc and config file together. |
... | ... | |
27 | 31 |
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] |
28 | 32 |
public partial class ServiceDeepView : System.Web.Services.WebService |
29 | 33 |
{ |
34 |
protected ILog logger = LogManager.GetLogger(typeof(WebService)); |
|
35 |
|
|
30 | 36 |
public ServiceDeepView() |
31 | 37 |
{ |
32 | 38 |
//System.Diagnostics.Trace.WriteLine(OperationContext.Current.RequestContext.RequestMessage.Headers.Action.ToString()); |
... | ... | |
515 | 521 |
var doc = entity.DOCINFO.Where(data => data.DOCUMENT_ID == param.documentID).FirstOrDefault(); |
516 | 522 |
if (doc != null) |
517 | 523 |
{ |
518 |
var count = doc.DOCPAGE.Where(data => data.DOCINFO_ID == doc.ID).Count(); |
|
524 |
var count = doc.DOCPAGE.Count(data => data.DOCINFO_ID == doc.ID); |
|
525 |
logger.Info($"GetConversionState {doc.PAGE_COUNT} / {count}"); |
|
519 | 526 |
if (doc.PAGE_COUNT == count) //페이지 수가 일치하는지 |
520 | 527 |
{ |
521 | 528 |
return true; |
내보내기 Unified diff