質問編集履歴

1

修正

2018/10/17 07:27

投稿

rainbowsix002
rainbowsix002

スコア39

test CHANGED
File without changes
test CHANGED
@@ -33,3 +33,33 @@
33
33
  おそらくローカルでは[02]を受け入れてないみたいです。
34
34
 
35
35
  phpの設定かnginx設定の問題でしょうか?
36
+
37
+
38
+
39
+ ```log
40
+
41
+ Syntax: error_log file [level];
42
+
43
+ Default:
44
+
45
+ error_log logs/error.log error;
46
+
47
+ Context: main, http, mail, stream, server, location
48
+
49
+ Configures logging. Several logs can be specified on the same level (1.5.2). If on the main configuration level writing a log to a file is not explicitly defined, the default file will be used.
50
+
51
+
52
+
53
+ The first parameter defines a file that will store the log. The special value stderr selects the standard error file. Logging to syslog can be configured by specifying the “syslog:” prefix. Logging to a cyclic memory buffer can be configured by specifying the “memory:” prefix and buffer size, and is generally used for debugging (1.7.11).
54
+
55
+
56
+
57
+ The second parameter determines the level of logging, and can be one of the following: debug, info, notice, warn, error, crit, alert, or emerg. Log levels above are listed in the order of increasing severity. Setting a certain log level will cause all messages of the specified and more severe log levels to be logged. For example, the default level error will cause error, crit, alert, and emerg messages to be logged. If this parameter is omitted then error is used.
58
+
59
+
60
+
61
+ For debug logging to work, nginx needs to be built with --with-debug, see “A debugging log”.
62
+
63
+ The directive can be specified on the stream level starting from version 1.7.11, and on the mail level starting from version 1.9.0.
64
+
65
+ ```