Commit 02005535 几米阳光

增加日志

1 个父辈 5db702d1
此文件类型无法预览
...@@ -46,7 +46,7 @@ namespace OnlineStore.ACSingleStore ...@@ -46,7 +46,7 @@ namespace OnlineStore.ACSingleStore
public static readonly ILog LOGGER = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); public static readonly ILog LOGGER = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
#endregion #endregion
/// <summary> /// <summary>
/// 应用程序的主入口点。 /// 应用程序的主入口点。
/// </summary> /// </summary>
...@@ -93,7 +93,7 @@ namespace OnlineStore.ACSingleStore ...@@ -93,7 +93,7 @@ namespace OnlineStore.ACSingleStore
} }
if (!isShow) if (!isShow)
{ {
XmlConfigurator.Configure(); XmlConfigurator.Configure();
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new FrmStoreBox()); Application.Run(new FrmStoreBox());
...@@ -101,11 +101,13 @@ namespace OnlineStore.ACSingleStore ...@@ -101,11 +101,13 @@ namespace OnlineStore.ACSingleStore
} }
static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{ {
LogUtil.error("出现UnhandledExceptionEventArgs错误 ");
LogUnhandledException(e.ExceptionObject); LogUnhandledException(e.ExceptionObject);
} }
static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e) static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
{ {
LogUtil.error("出现ThreadExceptionEventArgs错误 ");
LogUnhandledException(e.Exception); LogUnhandledException(e.Exception);
} }
......
...@@ -128,8 +128,9 @@ namespace OnlineStore.DeviceLibrary ...@@ -128,8 +128,9 @@ namespace OnlineStore.DeviceLibrary
} }
else else
{ {
LogUtil.info(" 摄像机【" + cameraName + "】获取图片完成,开始扫码"); LogUtil.info(" 摄像机【" + cameraName + "】获取图片完成,开始转换图片");
HObject ho_Image = HDCodeHelper.Bitmap2HObjectBpp24(bitmap); HObject ho_Image = HDCodeHelper.Bitmap2HObjectBpp24(bitmap);
LogUtil.info(" 摄像机【" + cameraName + "】转换图片完成,开始扫码");
List<CodeInfo> cc = new List<CodeInfo>(); List<CodeInfo> cc = new List<CodeInfo>();
foreach (string codeType in codeTypeList) foreach (string codeType in codeTypeList)
{ {
...@@ -142,6 +143,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -142,6 +143,7 @@ namespace OnlineStore.DeviceLibrary
{ {
cc = HDCodeHelper.DecodeCode(ho_Image, 1, GetCodeParamFilePath(codeType), codeType); cc = HDCodeHelper.DecodeCode(ho_Image, 1, GetCodeParamFilePath(codeType), codeType);
} }
LogUtil.info(" 摄像机【" + cameraName + "】【"+ codeType + "】扫码完成");
} }
allCodeList.AddRange(cc); allCodeList.AddRange(cc);
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!