File logging using Slogger

Hi,

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 alone to another file using slogger. Could you provide sample code for this ?

Thanks in advance

Regards,
Hello

You could write your own. It’s not very difficult.

I mean, how to log user defined log meesages to a file using SLOGGER?

Regards,
hello

slogb(), slogf(), slogi(), vslogf().