Anton Aylward schreef op 11-04-16 01:15:
On 04/10/2016 06:55 PM, Xen wrote:
For instance "logger" is clearly not a complex tool. If it had a little more functionality, the same interface would be very easy to use in a script (or program).
And what 'extra' functionality do you think it SHOULD have? And how would that make it easier to use?
Can you be specific, please.
I already explained at the beginning: In short: a logging library or program (for a shell script, you could not use a library, you need to have a command line tool). That could do what logrotate and syslog do, without requiring logrotate and syslog. Logrotate is not actually an administrator-specific tool. And there are things like user crontabs. But setting up the target of e.g. "logger" implies having sysadmin access or someone that can do it for you, because it depends on syslog, which cannot be configured by a user in any way. If I write a program that needs to be portable from system to system and that requires local logging to take place, Then I need to be able to package its logging system together with the application. Now Log4J does that, but supposing not everything I do is Java. I will need a logging library of certain functionality that cron, logrotate and syslog already provide. The very same features: * rotation * gzipping of old logs, possibly deletion of very old logs * possibly asynchronous writing, but not very important at this point. * support for different levels (info, debug, etc.) And yes I can write this, I was just curious whether it already existed. Maybe I should just repackage cron, logrotate and syslog as user-level programs/daemons ;-). You know, have your program have a /bin directory that contains those programs, just they run as your (program) user and may have different names and they do not need access to the full / trees. So your program could be packaged in a : /bin /etc /lib Of its own, and the programs you supply together with the program use that. Then you simply write to your own daemon instead of the system-wide daemon. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org