You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Right now, for python plugins and cpp plugins, the output behaviors are not identical.
For Python plugins:
If I start the server in daemon mode, print function will output the content into .err file rather than .log file.
If I start the server in console, print function will not take effect and print message into the console.
For cpp plugins:
If I start the server in daemon mode, std::cout will not take effect, no message will be found in .err file nor .log file.
If I start the server in console, std::cout will print the message into the console.
The behavior is quite confusing and not very friendly for users to debug their own plugins.
Describe the solution you'd like
If start the server in daemon mode, Python print should write the log into .log file rather than .err file. And std::cout should write the log into .log file too and maybe std::err should write the log into .err file.
If start the server in console, all output functions should take effect and write the logs into the console.
The text was updated successfully, but these errors were encountered:
Hi, the log system has been rewritten. Now there is no .err file, only .log file.
If you set the item log_dir in config file to NULL, the log will be redirected to the console. (If the server is running in daemon mode, there is no log recorded.)
If you set it to a specific path, the log will be written to the file path.
This applies to the log prints code both in cpp plugin and the python plugin. The only difference here is that the print in python plugin writes log in warning level.
The issue is closed due to inactivity. Please feel free to create a new one if you have more questions. And please star this repo if you find it useful! Thanks!
此issue由于长期不活跃被关闭。如有任何问题,可另开 issue 并提供更多信息。如果这个项目帮助到你,可以在仓库右上角 star 一下,感谢你的支持!
Is your feature request related to a problem? Please describe.
Right now, for python plugins and cpp plugins, the output behaviors are not identical.
For Python plugins:
print
function will output the content into.err
file rather than.log
file.print
function will not take effect and print message into the console.For cpp plugins:
std::cout
will not take effect, no message will be found in.err
file nor.log
file.std::cout
will print the message into the console.The behavior is quite confusing and not very friendly for users to debug their own plugins.
Describe the solution you'd like
print
should write the log into.log
file rather than.err
file. Andstd::cout
should write the log into.log
file too and maybestd::err
should write the log into.err
file.The text was updated successfully, but these errors were encountered: