request help: I can't use print() method in lua, when I use print("test"),there is no output in log files and console. #8107
Unanswered
hizzyishome
asked this question in
Q&A
Replies: 1 comment
-
you can turn off the access log, raise the log level of the error log, and then use the log plugin to collect logs, this allows you to decide the format and content of the log. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Current Behavior
I can't use print() method in lua, when I use print("test"),there is no output in log files and console.
Expected Behavior
I dont want the begaining like "2022/10/18 09:57:29 [warn] 65#65: *262322 [lua] ****.lua:114:" or the end like " client: 127.0.0.1, server: _, request: "POST /123 HTTP/1.1", host: " .
I need pure formated log to be printed.
user print("test")
I can get the line:
test
that's all.
Error Logs
No response
Steps to Reproduce
Environment
apisix version
): 2.15.1 2.12.1bothuname -a
):inux 4.12.14-120-default change: added doc of how to load plugin. #1 SMP Thu Nov 7 16:39:09 UTC 2019 (fd9dc36) x86_64 x86_64 x86_64 GNU/Linuxopenresty -V
ornginx -V
):openresty/1.19.9.1curl http://127.0.0.1:9090/v1/server_info
):luarocks --version
):3.8.0Beta Was this translation helpful? Give feedback.
All reactions