4 from rspy
import log, test
5 import pyrealsense2
as rs
10 rs.log( rs.log_severity.debug,
"debug message" )
11 rs.log( rs.log_severity.info,
"info message" )
12 rs.log( rs.log_severity.warn,
"warn message" )
13 rs.log( rs.log_severity.error,
"error message" )
16 rs.log( rs.log_severity.none,
"no message" )
23 log.d( message.full() )
25 test.check_equal(
str(message), message.raw() )
26 test.check_equal(
repr(message), message.full() )
33 log.d( message.full() )
38 return len( open( filename,
'rt' ).read().
split(
'\n' )) - 1