質問編集履歴
5
誤記を修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
1)error log出力を行いたい
|
8
8
|
|
9
|
-
2)1が
|
9
|
+
2)1ができたら、次にLogに、stackTraceを出力したい
|
10
10
|
|
11
11
|
|
12
12
|
|
4
誤記
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ZendFrameWork error log 出力する
|
1
|
+
ZendFrameWork error log 出力するには?また、logにstackTraceを出力するには?
|
test
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
### 実現したいこと
|
6
6
|
|
7
|
-
1)error log出力を行
|
7
|
+
1)error log出力を行いたい
|
8
8
|
|
9
|
-
2)
|
9
|
+
2)1が櫃減できたら、Logに、stackTraceを出力したい
|
10
10
|
|
11
11
|
|
12
12
|
|
3
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -19,14 +19,6 @@
|
|
19
19
|
{
|
20
20
|
|
21
21
|
$errors = $this->_getParam('error_handler');
|
22
|
-
|
23
|
-
if (!$errors || !$errors instanceof ArrayObject) {
|
24
|
-
|
25
|
-
$this->view->message = 'You have reached the error page';
|
26
|
-
|
27
|
-
return;
|
28
|
-
|
29
|
-
}
|
30
22
|
|
31
23
|
switch ($errors->type) {
|
32
24
|
|
@@ -56,22 +48,6 @@
|
|
56
48
|
|
57
49
|
}
|
58
50
|
|
59
|
-
if ($log = $this->getLog()) {
|
60
|
-
|
61
|
-
$log->log($this->view->message, $priority, $errors->exception);
|
62
|
-
|
63
|
-
$log->log('Request Parameters', $priority, $errors->request->getParams());
|
64
|
-
|
65
|
-
}
|
66
|
-
|
67
|
-
if ($this->getInvokeArg('displayExceptions') == true) {
|
68
|
-
|
69
|
-
$this->view->exception = $errors->exception;
|
70
|
-
|
71
|
-
}
|
72
|
-
|
73
|
-
$this->view->request = $errors->request;
|
74
|
-
|
75
51
|
}
|
76
52
|
|
77
53
|
|
2
誤記修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -13,10 +13,6 @@
|
|
13
13
|
application/constrollers/ErrorController.php
|
14
14
|
|
15
15
|
```php
|
16
|
-
|
17
|
-
class ErrorController extends Zend_Controller_Action
|
18
|
-
|
19
|
-
{
|
20
16
|
|
21
17
|
public function errorAction()
|
22
18
|
|
@@ -78,6 +74,6 @@
|
|
78
74
|
|
79
75
|
}
|
80
76
|
|
81
|
-
|
77
|
+
|
82
78
|
|
83
79
|
```
|
1
誤記修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -78,4 +78,6 @@
|
|
78
78
|
|
79
79
|
}
|
80
80
|
|
81
|
+
}
|
82
|
+
|
81
83
|
```
|