-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
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
Introduce logging in shared library dictionaries #2472
Conversation
void trace(ClickHouseLibrary::CString msg) | ||
{ | ||
auto & logger = Logger::get(DICT_LOGGER_NAME); | ||
if (logger.trace()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no params?
auto & logger = Logger::get(DICT_LOGGER_NAME); | ||
if (logger.trace()) | ||
{ | ||
logger.trace(msg); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
params?
} | ||
} | ||
|
||
void debug(ClickHouseLibrary::CString msg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not use one function log(TRACE, msg) ?
…ne and add logging examples into test libraries
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en