10 TEST_CASE(
"Mixed file & callback logging",
"[log]" ) {
15 TRACE(
"Filename logging to: " << filename );
17 size_t n_callbacks = 0;
GLenum GLuint GLenum severity
void log_to_callback(rs2_log_severity min_severity, S callback)
const char * filename() const
TEST_CASE("Mixed file & callback logging","[log]")
size_t line_number() const
size_t count_lines(char const *filename)
static void flushAll(void)
Flushes all loggers for all levels - Be careful if you dont know how many loggers are registered...
void log_to_file(rs2_log_severity min_severity, const char *file_path=nullptr)
REQUIRE_NOTHROW(rs2_log(RS2_LOG_SEVERITY_INFO,"Log message using rs2_log()", nullptr))
rs2_log_severity
Severity of the librealsense logger.