Skip to content
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

DM-6521 Add a Python interface with Log objects #11

Merged
merged 7 commits into from Jul 19, 2016
Merged

Conversation

hsinfang
Copy link

No description provided.

* one, or more comma-separated arguments.
*/
#define LOGL_TRACE(logger, message...) \
do { if (LOG4CXX_UNLIKELY(logger.isTraceEnabled())) { \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are useful new macros, but maybe we can make them more useful :) In practically all other macros logger means either LoggerPtr (or Log instance after your changes) or logger name (string). Can we do the same in the new macros to keep things consistent?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the great suggestion. Done.

@hsinfang hsinfang force-pushed the tickets/DM-6521 branch 2 times, most recently from ef95111 to 1869cb1 Compare July 18, 2016 15:23
@hsinfang hsinfang force-pushed the tickets/DM-6521 branch 2 times, most recently from d8f439f to 9514896 Compare July 18, 2016 17:27
@hsinfang hsinfang force-pushed the tickets/DM-6521 branch 2 times, most recently from a37d292 to b5a32a7 Compare July 19, 2016 15:22
Hsin-Fang Chiang added 2 commits July 19, 2016 11:34
Log's static functions were utility methods used in the custom
interface that has been removed.  For a more proper Log class,
they should no longer be static. The API of the macros stays
the same.

The static setLevel(), getLevel(), and isEnabledFor() are removed.
The static logMsg() and log() are kept because qserv needs
coordinated changes before they can be removed.
@hsinfang hsinfang merged commit 926eeb9 into master Jul 19, 2016
@ktlim ktlim deleted the tickets/DM-6521 branch August 25, 2018 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants