We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In file: oatpp/core/base/Environment.hpp
Hi
Can we define oatpp to log into a file?
Thanks.
The text was updated successfully, but these errors were encountered:
Hello @olegZatu ,
Sure - you can customize oatpp logger:
class MyLogger : public oatpp::base::Logger { public: void log(v_int32 priority, const std::string& tag, const std::string& message) override { std::cout << "MyCustomLog - " << message << std::endl; // TODO - change std::cout to whatever } }; ... oatpp::base::Environment::init(std::make_shared<MyLogger>());
Sorry, something went wrong.
No branches or pull requests
In file: oatpp/core/base/Environment.hpp
Question
Hi
Can we define oatpp to log into a file?
Thanks.
The text was updated successfully, but these errors were encountered: