Changeset 52691 in vbox
- Timestamp:
- Sep 10, 2014 8:15:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/log.h
r51770 r52691 706 706 #endif 707 707 708 /** @def Log2Func 709 * Level 2 logging inside C/C++ functions. 710 * 711 * Prepends the given log message with the function name followed by a 712 * semicolon and space. 713 * 714 * @param a Log message in format <tt>("string\n" [, args])</tt>. 715 */ 716 #ifdef LOG_USE_C99 717 # define Log2Func(a) \ 718 _LogIt(LOG_INSTANCE, RTLOGGRPFLAGS_LEVEL_2, LOG_GROUP, LOG_FN_FMT ": %M", __PRETTY_FUNCTION__, _LogRemoveParentheseis a ) 719 #else 720 # define Log2Func(a) \ 721 do { Log2((LOG_FN_FMT ": ", __PRETTY_FUNCTION__)); Log2(a); } while (0) 722 #endif 723 724 /** @def Log3Func 725 * Level 3 logging inside C/C++ functions. 726 * 727 * Prepends the given log message with the function name followed by a 728 * semicolon and space. 729 * 730 * @param a Log message in format <tt>("string\n" [, args])</tt>. 731 */ 732 #ifdef LOG_USE_C99 733 # define Log3Func(a) \ 734 _LogIt(LOG_INSTANCE, RTLOGGRPFLAGS_LEVEL_3, LOG_GROUP, LOG_FN_FMT ": %M", __PRETTY_FUNCTION__, _LogRemoveParentheseis a ) 735 #else 736 # define Log3Func(a) \ 737 do { Log3((LOG_FN_FMT ": ", __PRETTY_FUNCTION__)); Log3(a); } while (0) 738 #endif 739 708 740 /** @def Log4Func 709 741 * Level 4 logging inside C/C++ functions. … … 719 751 #else 720 752 # define Log4Func(a) \ 721 do { Log((LOG_FN_FMT ": ", __PRETTY_FUNCTION__)); Log(a); } while (0) 753 do { Log4((LOG_FN_FMT ": ", __PRETTY_FUNCTION__)); Log4(a); } while (0) 754 #endif 755 756 /** @def Log5Func 757 * Level 5 logging inside C/C++ functions. 758 * 759 * Prepends the given log message with the function name followed by a 760 * semicolon and space. 761 * 762 * @param a Log message in format <tt>("string\n" [, args])</tt>. 763 */ 764 #ifdef LOG_USE_C99 765 # define Log5Func(a) \ 766 _LogIt(LOG_INSTANCE, RTLOGGRPFLAGS_LEVEL_5, LOG_GROUP, LOG_FN_FMT ": %M", __PRETTY_FUNCTION__, _LogRemoveParentheseis a ) 767 #else 768 # define Log5Func(a) \ 769 do { Log5((LOG_FN_FMT ": ", __PRETTY_FUNCTION__)); Log5(a); } while (0) 770 #endif 771 772 /** @def Log6Func 773 * Level 6 logging inside C/C++ functions. 774 * 775 * Prepends the given log message with the function name followed by a 776 * semicolon and space. 777 * 778 * @param a Log message in format <tt>("string\n" [, args])</tt>. 779 */ 780 #ifdef LOG_USE_C99 781 # define Log6Func(a) \ 782 _LogIt(LOG_INSTANCE, RTLOGGRPFLAGS_LEVEL_6, LOG_GROUP, LOG_FN_FMT ": %M", __PRETTY_FUNCTION__, _LogRemoveParentheseis a ) 783 #else 784 # define Log6Func(a) \ 785 do { Log6((LOG_FN_FMT ": ", __PRETTY_FUNCTION__)); Log6(a); } while (0) 722 786 #endif 723 787
Note:
See TracChangeset
for help on using the changeset viewer.