Xen wrote:
I must say personally I feel "logger" is quite convenient, but you don't get to specify any alternative log file.
Yes, it writes to syslog, which by default is the systemd journal. If you want it written to a file, you need to install a syslog daemon and configure it to do that.
Personally I would prefer a more custom made or personal thing that logs only stuff that I want personally to be logged.
And not system wide or in that system wide log file.
Is there really not any simple way to achieve a modicum of features instead of outputting to a file directly?
Of course I could simply log to syslog
A log is just a file, no more, no less. The issue is how you write to it. Do you use the syslog() interface or do write directly to your own file. How you decide between them depends on what you're logging and from where, I would say.
* if the log is voluminous, you would probably want something that is not into syslog, and that rotates
* if the log is not voluminous, you won't need rotation as much, and maybe simple file redirect would be sufficient.
So the moment you want more features, you probably have more log output, and when you have more log output, you probably don't want to log to syslog.
Solution? :-/.
You don't seem to have presented us with a problem yet? Log to syslog, then have your favourite syslog daemon write it to your favourite logfile. If you need to rotate it, add a config to /etc/logrotate.d. /Per -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org