{"id":7537,"date":"2020-09-10T13:51:19","date_gmt":"2020-09-10T04:51:19","guid":{"rendered":"https:\/\/chat-messenger.com\/?p=7537"},"modified":"2025-06-08T16:17:15","modified_gmt":"2025-06-08T07:17:15","slug":"accesslog","status":"publish","type":"post","link":"https:\/\/chat-messenger.com\/zh_tw\/\u624b\u52d5\u7684\/camserver\/\u8a2a\u554f\u65e5\u8a8c","title":{"rendered":"\u8bb0\u5f55\u8bbf\u95ee\u65e5\u5fd7"},"content":{"rendered":"<p><style type=\"text\/css\"><!--\ntable, th, td {\n    border: none !important;\n}\n--><\/style><\/p>\n<h2>\u95dc\u65bc\u8a2a\u554f\u65e5\u8a8c<\/h2>\n<p>\u60a8\u53ef\u4ee5\u8a18\u9304\u7528\u6236\u7aef\u5b58\u53d6\u672c\u6a5fCAMServer\u7684\u65e5\u8a8c\u3002<br \/>\u67e5\u770b\u8a2a\u554f\u65e5\u8a8c\u6709\u5169\u7a2e\u65b9\u5f0f\uff1a\u4e00\u7a2e\u662f\u5f9e\u7ba1\u7406\u4ecb\u9762\u67e5\u770b\uff0c\u53e6\u4e00\u7a2e\u662f\u4ee5\u6587\u5b57\u683c\u5f0f\u8a18\u9304\u3002<\/p>\n<h2>\u7ba1\u7406\u87a2\u5e55\u5b58\u53d6\u65e5\u8a8c<\/h2>\n<table style=\"padding: 5px; width: 600px;\">\n<tbody>\n<tr align=\"top\">\n<td width=\"200\">\n<div class=\"card-img post_img\"><img src=\"\/images\/attendance_accesslog.png\" border=\"0\" \/><\/div>\n<\/td>\n<td>\u60a8\u53ef\u4ee5\u5728\u7ba1\u7406\u756b\u9762\u4e0a\u67e5\u770b\u6bcf\u500b\u4f7f\u7528\u8005\u7684\u5b58\u53d6\u65e5\u8a8c\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"point\">\n<ul>\n<li>\u7ba1\u7406\u87a2\u5e55\u4e0a\u7684\u5b58\u53d6\u65e5\u8a8c\u9069\u7528\u65bc\u96f2\u7aef\u4f01\u696d\u7248\u548c\u672c\u5730\u65d7\u8266\u7248\u3002<\/li>\n<li>\u555f\u7528\u8003\u52e4\u7ba1\u7406\u5f8c\uff0c\u53ef\u4ee5\u67e5\u770b\u96fb\u8166\u904b\u4f5c\u72c0\u614b\u3002<\/li>\n<\/ul>\n<\/div>\n<h2>\u6587\u5b57\u5b58\u53d6\u65e5\u8a8c<\/h2>\n<h3>\u9304\u97f3\u65b9\u5f0f<\/h3>\n<ol>\n<li>CAM\u4f3a\u670d\u5668\u505c\u6b62<\/li>\n<li><code>CAM\u4f3a\u670d\u5668\/boot.ini<\/code> \u5c07\u4ee5\u4e0b\u90e8\u5206\u65b0\u589e\u81f3\u6587\u4ef6\u4e2d\n<pre class=\"sample_src\"># \u8a18\u9304\u6bcf\u500b HTTP \u5b58\u53d6 cam.enableServerAccessLog=true # \u53ef\u9078\u3002\u5c07\u767b\u5165\u8a8d\u8b49\u7684\u4fe1\u7bb1\u52a0\u5165\u4e0a\u8ff0\u65e5\u8a8c\u4e2d\uff08\u90e8\u5206\u90f5\u4ef6\u6703\u88ab\u5c01\u9396\u8a18\u9304\uff09 cam.enableServerAccessLogEmail=true\n<\/pre>\n<\/li>\n<li>CAM\u4f3a\u670d\u5668\u555f\u52d5<\/li>\n<\/ol>\n<h3>\u65e5\u8a8c\u5132\u5b58\u4f4d\u7f6e<\/h3>\n<p>\u7576\u4ee5\u4e0a\u8a2d\u5b9a\u5b8c\u6210\u5f8c <code>CAMServer\/sys\/logs\/YYYYMM_application0.log<\/code> \u8a2a\u554f\u65e5\u8a8c\u8a18\u9304\u5728\u6587\u4ef6\u4e2d\u3002<\/p>\n<p>*YYYYMM \u662f CAMServer \u555f\u52d5\u7684\u5e74\u4efd\u548c\u6708\u4efd\u3002<\/p>\n<p>*\u65e5\u8a8c\u6a94\u6848\u4ee550MB\u70ba\u55ae\u4f4d\u8f2a\u63db\uff0cYYYYMM_application0.log\u7684\u7b2c0\u500b\u65e5\u8a8c\u6a94\u6848\u662f\u76ee\u524d\u6b63\u5728\u8f38\u51fa\u7684\u65e5\u8a8c\u6a94\u6848\u3002\u5e8f\u865f\u6700\u5c0f\u7684\u65e5\u8a8c\u6a94\u6848\u662f\u7576\u6708\u7684\u65b0\u65e5\u8a8c\u6a94\u6848\u3002<\/p>\n<h3>\u8a18\u9304\u4e86\u4ec0\u9ebc<\/h3>\n<p>\u8a2a\u554f\u65e5\u8a8c\u4ee5\u4ee5\u4e0b\u683c\u5f0f\u8a18\u9304\u3002<\/p>\n<p><small><i>\u65e5\u671f\u548c\u6642\u9593\uff1a[INFO]\uff1aCAMServlet\uff1a\u8acb\u6c42\/CAMServer\/API\u7aef\u9ede\u5ba2\u6236\u7aefIP\u5c4f\u853d\u96fb\u5b50\u90f5\u4ef6\u7528\u6236ID\u7684\u4e00\u90e8\u5206\u6703\u8a71ID\u7684\u4e00\u90e8\u5206\u5ba2\u6236\u7aef\u8b58\u5225\u78bc\uff08web | electro | android | ios\uff09<\/i><\/small><\/p>\n<pre class=\"sample_src\">2022\/09\/10 13:57:09:[\u8a0a\u606f]:CAMServlet:\u8acb\u6c42 \/CAMServer\/getpublickey 192.168.1.XX tes*ou*an*be*te*t*co* 1gh7pgnovpss 856C9E2 \u7db2\u8def 202*co* 1gh7pgnovpss 856C9E2 \u7db2\u8def 202\/03 :57:09:[\u8a0a\u606f]:CAMServlet :\u8acb\u6c42\/CAMServer\/getack 192.168.1.XX tes*ou*an*be*te*t*co* 1gh7pgnovpss 856C9E2 \u7db2\u8def2022\/09\/10 13:57:09:[\u8cc7\u8a0a]:CAMServlet:\u8acb\u6c42\/CAMServer\/serverInfo 192.168.1.XX tes*ou*an*be*te*t*co* 1gh7pgnovpss 856C9E2 \u7db2\u8def2022\/09\/10 13:57:09:[\u8cc7\u8a0a]:Servlet:[\u8cc7\u8a0a] \/CAMServer\/signIn 192.168.1.XX tes*ou*an*be*te*t*co* 1gh7pgnovpss 856C9E2 web 2022\/09\/10 13:57:10:[INFO]:CAMServlet\uff1a\u8acb\u6c42\/Server\/13892.10:[692. 1.XX tes*ou*an*be*te*t*co* 1gh7pgnovpss 856C9E2 \u7db2\u8def2022\/09\/10 13:57:10:[INFO]:CAMServlet:Request \/CAMServer\/getUserPref 192.168.1. *an*be*te*t*co* 1gh7pgnovpss 856C9E2 \u7db2\u8def2022\/09\/10 13:57:10:[\u8cc7\u8a0a]:CAMServlet:Request \/CAMServer\/getLatestEntities 192.168.1.XX tes*ouan* *t*co* 1gh7pgnovpss 856C9E2 \u7db2\u7d61\n<\/pre>\n\n\n<h2>\u65e5\u8a8c\u76e3\u63a7<\/h2>\n\n\n\n<p>\u82e5\u8981\u5f9e\u65e5\u8a8c\u4e2d\u5075\u6e2c CAMServer \u4e2d\u767c\u751f\u7684\u932f\u8aa4\uff0c\u8acb\u6aa2\u67e5 CAMServer \u8f38\u51fa\u7684\u65e5\u8a8c\u6a94\u6848\uff08<code>CAMServer\/sys\/logs\/YYYYMM_application0.log<\/code>\uff09\u61c9\u8a72\u7528\u65e5\u8a8c\u76e3\u63a7\u5de5\u5177\u4f86\u76e3\u63a7\u3002<\/p>\n\n\n\n<p>\u5927\u591a\u6578\u60c5\u6cc1\u4e0b<code> [\u56b4\u91cd] <\/code>\u8acb\u4f7f\u7528\u76e3\u63a7\u5de5\u5177\u9032\u884c\u76e3\u63a7\u3002<\/p>\n\n\n\n<h3>\u8b66\u544a\u7b49\u7d1a<\/h3>\n\n\n\n<ul><li>\u5167\u5bb9\uff1a\u8a8d\u8b49\u932f\u8aa4\u3001API\u5b58\u53d6\u932f\u8aa4\u6216\u5ba2\u6236\u7aef\u610f\u5916\u932f\u8aa4\u6642\u7684\u8f38\u51fa<\/li><li>\u5f71\u97ff\uff1a\u5927\u591a\u6578\u60c5\u6cc1\u4e0b\u7121\u5bb3<\/li><\/ul>\n\n\n\n<div class=\"hcb_wrap\" data-no-translation=\"\"><pre class=\"prism line-numbers lang-bash\" data-file=\"\u51fa\u529b\u30b5\u30f3\u30d7\u30eb\" data-lang=\"Bash\"><code>2024\/05\/23 16:29:15:[WARNING]:CAMServlet :app.base.AppLevelException: Bad request.<\/code><\/pre><\/div>\n\n\n\n<h3>\u56b4\u91cd\u7b49\u7d1a<\/h3>\n\n\n\n<ul><li>\u5167\u5bb9\uff1a\u78c1\u789f\u6545\u969c\u3001\u78c1\u789f\u77ed\u7f3a\u3001\u8a18\u61b6\u9ad4\u77ed\u7f3a\u3001\u7522\u54c1Bug\u7b49\u3002<\/li><li>\u5f71\u97ff\u7a0b\u5ea6\uff1a\u6709\u5f71\u97ff\uff0c\u56e0\u6b64\u9700\u8981\u63a1\u53d6\u884c\u52d5\u3002\u4e0d\u904e\uff0c\u96d6\u7136\u7121\u5bb3\uff0c\u4f46\u7531\u65bc\u7522\u54c1\u672c\u8eab\u8003\u616e\u4e0d\u8db3\uff0c\u4e5f\u53ef\u80fd\u6703\u51fa\u73fe\u9019\u7a2e\u60c5\u6cc1\uff0c\u6240\u4ee5\u6709\u5fc5\u8981\u5728\u76e3\u63a7\u5de5\u5177\u4e2d\u5c0d\u983b\u7e41\u51fa\u73fe\u7684\u65e5\u8a8c\u9032\u884c\u6392\u9664\u3002<\/li><\/ul>\n\n\n\n<div class=\"hcb_wrap\" data-no-translation=\"\"><pre class=\"prism line-numbers lang-bash\" data-file=\"\u51fa\u529b\u30b5\u30f3\u30d7\u30eb\" data-lang=\"Bash\"><code>2024\/05\/23 09:29:57:[SEVERE]:ErrorHandler :An error has occurred. java.lang.NullPointerException<\/code><\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>\u95dc\u65bc\u5b58\u53d6\u65e5\u8a8c\u60a8\u53ef\u4ee5\u8a18\u9304\u7528\u6236\u7aef\u5b58\u53d6\u672c\u6a5f CAMServer \u7684\u65e5\u8a8c [...]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":""},"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/chat-messenger.com\/zh_tw\/wp-json\/wp\/v2\/posts\/7537"}],"collection":[{"href":"https:\/\/chat-messenger.com\/zh_tw\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chat-messenger.com\/zh_tw\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chat-messenger.com\/zh_tw\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chat-messenger.com\/zh_tw\/wp-json\/wp\/v2\/comments?post=7537"}],"version-history":[{"count":10,"href":"https:\/\/chat-messenger.com\/zh_tw\/wp-json\/wp\/v2\/posts\/7537\/revisions"}],"predecessor-version":[{"id":12179,"href":"https:\/\/chat-messenger.com\/zh_tw\/wp-json\/wp\/v2\/posts\/7537\/revisions\/12179"}],"wp:attachment":[{"href":"https:\/\/chat-messenger.com\/zh_tw\/wp-json\/wp\/v2\/media?parent=7537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chat-messenger.com\/zh_tw\/wp-json\/wp\/v2\/categories?post=7537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chat-messenger.com\/zh_tw\/wp-json\/wp\/v2\/tags?post=7537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}