Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
234 views
in Q2A Core by
How could I log some information in plugins using core functions? Is there such a feature in q2a core?
Q2A version: 1.6.3

1 Answer

+1 vote
by
selected by
 
Best answer
Yes, to store information you can use qa_opt('your_option_name', 'your_option_value');

To receive the value you use: qa_opt('your_option_name'); // you get your_option_value

Hope that helps,
Kai
by
Thank you Kai but this is not good if there was large amount of errors and I want to log all of them.
If I use error_log() where I can find logged errors?
by
ah you mean logging of processes etc. I thought you meant "logging" of some data of your plugin. Yep, then user error_log(). You should find the error_log file in the root of your installation.
by
there is no implemented alternative to error_log() in q2a core?
by
function qa_fatal_error($message) for instance uses @error_log();
by
Thank you Kai
...