83 ucx_logger_trace(logger, "dont log this!"); |
83 ucx_logger_trace(logger, "dont log this!"); |
84 |
84 |
85 logger->mask |= UCX_LOGGER_TIMESTAMP; |
85 logger->mask |= UCX_LOGGER_TIMESTAMP; |
86 time_t now = time(NULL); |
86 time_t now = time(NULL); |
87 char timestr[13]; |
87 char timestr[13]; |
88 strftime(timestr, 12, "%F:", localtime(&now)); |
88 strftime(timestr, 12, "%Y-%m-%d:", localtime(&now)); |
89 const uint line2 = __LINE__; ucx_logger_error(logger, "error %d!", 42); |
89 const unsigned int line2 = __LINE__; |
|
90 ucx_logger_error(logger, "error %d!", 42); |
90 |
91 |
91 fseek(stream, 0, SEEK_SET); |
92 fseek(stream, 0, SEEK_SET); |
92 size_t r = fread(buffer, 1, 100, stream); |
93 size_t r = fread(buffer, 1, 100, stream); |
93 |
94 |
94 const size_t expected_length = 87; |
95 const size_t expected_length = 87; |