openresty error.log格式字段

错误日志格式

请注意,所有错误日志格式都是相同的。

格式: local_time [log_level] Process_id#Thread_id *Connection_id Module_name [language] file_name:line_number: function_name(): log_body, protocol client_address, server_address

示例: 2021/03/19 16:30:56 [error] 3393524#3393524: *934186 stream [lua] dns.lua:29: go(): rewrite phase failed: nil, udp client: 127.0.0.1, server: 0.0.0.0:53

DNS 访问日志格式

格式: Unix_timestamp: [local_time] remote_addr (client_subnet) DNS_query_type host [client_country] [client_province] [client_isp] [DNS_record]

示例: 1616140331576: [2021-03-19 15:52:11] 127.0.0.1 (127.0.0.1) A www.openresty.com [US] [California] [Verizon] [A: 127.0.0.1]

参考资料

openresty官方文档

你可能感兴趣的:(openresty,lua,开发语言)