Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - slogger writes non-sense messages to the log file: Page 1 of 12 (12 Items)
   
slogger writes non-sense messages to the log file  
Hi, 
I am using slogger to write debugging message to a /var/log/message.

execute the command 'slogger -s 2048k -l -l /var/logs/message -f 5' at the early system up stage.

However, when I looked at the logged messages from sloginfo -t -w.

it contains very non-sense messages which human cannot understand.
ie.

GOOD LOGS:
Nov 30 23:07:24.501    5 10000     0 <compute.cpp:285> static lever arm v, 0.008, -0.133, 0.070, 0.000, 0.000, 0.000, 0.
008, -0.133, 0.070

BAD LOGS: the month is changed to Aug for some reason....
Aug 23 15:49:06.663    3 93795   1862 1635149164 1701064291 1886403122 859061792 538976288 538979360 1936619103 
1915642992 1529961768 825112113 875113504 1936619103 1915647579 828188720 774910008 690757740 1634956383 1985687901 
674246192 808986924 543454258 674246192 808659244 541339944 824788018 674244896 1936619103 1915647016 909192752 
926099756 544435830 1600416115 1949201448 909192752 926099756 544497513 1953900592 774910005 807993392 2826093 10000 
1543619244 1013213555 1952542307 1700754546 1635149164 1701064291 1886403122 859061792 538976288 538979360 1936619103 
1915642992 1530027304 758328886 909453612 544435830 1601318518 1530027304 758132273 858990892 

I thought it might be the sloginfo utility issue. Then, I wrote a stand along utility to decode slogger message by open 
/dev/slog

Now the bad logs is not numbers but it is still not making any senses

GOOD LOGS:
Jan 06 20:43:13.528  5 10000   0: <compute.cpp:231> -77.586, 5.348, 45.341, -0.005, -0.000, 0.003, 162802.148

BAD LOGS:
Sep 18 07:27:48.757  7 290669  1782: a.valid to false, (162806.585, 74597.004), head from (2) advanced to (0)
Feb 01 05:31:12.838  7 536617  514: 
Jan 01 02:46:40.758  5 133901   1: \2hf<compute.cpp:386> numOfMsgFromIin = 162759
Sep 18 07:27:48.757  7 290669  1782: a.valid to false, (162807.585, 74598.004), head from (0) advanced to (1)

I think it might be related to slogger utility.

Any one knows the issues?

Thanks in advance...