-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday, 2016-04-09 at 16:06 +0200, Xen wrote:
Per Jessen schreef op 09-04-16 10:50:
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.
So I guess Carlos said you can have multiple destinations in your syslog daemon configuration. Otherwise.
Yes, it can be asingle file or multiple. Typically it is one file for verbose entries, one for very important entries, and then others for some specific types: firewall, mail, news...
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.
Otherwise it could mean you would need an additional syslog daemon for every program you want to log.
No you don't. There is only one system syslog daemon.
It also makes it impossible for any *user* to create logging without being the system administrator. All not very flexible and I guess.
Users have to use the system syslog, if the admin allows access to read the files for him, or writes their own files. There are 7 user facilities.
What if I write an application and I want to run it on a shell server on which I am just a guest.
I want it to do logging within my personal user space.
Do it yourself, with write statements in your program. Or use journalctl, which allows for user logs, I think (I don't know for sure, I haven't tried).
Just the way it would happen for me I guess. In the meantime I keep writing my own logging system (more or less) in every bash script I write, because I require different levels etc.
Yes, that's what everybody does. - -- Cheers, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlcJNyYACgkQtTMYHG2NR9XBjgCcC5ZRAOedOvSRVibgNDffRPf+ 1rYAnA03KQKGmgXMYCOhU7DL1Vz3rhJ7 =IzTz -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org