Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to log only user application log messages to user defined log files using slogger?: (1 Item)
   
How to log only user application log messages to user defined log files using slogger?  
Hi all,

Using slogf(), logging can be done using slogger. Default log file path is /dev/slog. Using sloginfo logs are displayed 
in console. These log contain both user given and system log. How to save user defined logs to another file using 
slogger. Could you provide sample code for this ?

I tried out slogger -l /tmp/sample.txt,1000k -f 7. Log is saved to sample.txt. But this includes system log also. I need
 user initiated logs to be saved to a file using slogger. 

Also when i view the sample.txt file some unwanted characters are also saved before each log. Please suggest a solution

Regards,
Hello