sloginfo
Print messages from the system log
Syntax:
sloginfo [options] [filename]
Runs on:
QNX Neutrino
Options:
-c
Clear the log buffer after displaying all waiting events.
-h
Print unformatted entries in hexadecimal. By default, they're printed in decimal.
-m code
Display events with this major code (default: display all).
-s 0..7
Display events with this severity or lower (default: 7). The lowest severity is 7 and the highest is 0.
-t
Print time for events with millisecond resolution.
-w
Wait for more events to arrive.
filename
The name of the file containing raw events (default: /dev/slog).
-w很有用,当你在调试程序时,可以设置该参数,会不停的打印slog信息。