Re: [yast-devel] use ALog::Item

2008-08-11 Thread Klaus Kaempf
* Arvin Schnell [EMAIL PROTECTED] [Aug 09. 2008 13:58]: Callbacks would be another possibility. But I suppose logging is also required when libstorage is used by other programs so callbacks would only move the problem to those programs. Implementing (optional) logging callbacks is a smaller

Re: [yast-devel] use ALog::Item

2008-08-09 Thread Arvin Schnell
On Wed, Aug 06, 2008 at 05:53:58PM +0200, Arvin Schnell wrote: On Wed, Aug 06, 2008 at 05:41:49PM +0200, Martin Vidner wrote: On Wed, Aug 06, 2008 at 04:57:13PM +0200, Michael Andres wrote: On Wed, Aug 06, Martin Vidner wrote: ALog::Item(/etc/ntp.conf: added 'server ntp.example.org')

Re: [yast-devel] use ALog::Item

2008-08-08 Thread Arvin Schnell
On Thu, Aug 07, 2008 at 03:20:53PM +0200, Martin Vidner wrote: On Wed, Aug 06, 2008 at 05:53:58PM +0200, Arvin Schnell wrote: On Wed, Aug 06, 2008 at 05:41:49PM +0200, Martin Vidner wrote: On Wed, Aug 06, 2008 at 04:57:13PM +0200, Michael Andres wrote: Isn't this what the loglevel 6

Re: [yast-devel] use ALog::Item - use SCR?

2008-08-08 Thread Lukas Ocilka
Michal Svec wrote: On Thu, 7 Aug 2008, Martin Vidner wrote: On Wed, Aug 06, 2008 at 10:33:01PM +0200, Michal Svec wrote: Can't we get this information from SCR, without calling explicitely some functions (which is going to be error prone)? For instance the example above could be generated

Re: [yast-devel] use ALog::Item

2008-08-07 Thread Martin Vidner
On Wed, Aug 06, 2008 at 05:53:58PM +0200, Arvin Schnell wrote: On Wed, Aug 06, 2008 at 05:41:49PM +0200, Martin Vidner wrote: On Wed, Aug 06, 2008 at 04:57:13PM +0200, Michael Andres wrote: Isn't this what the loglevel 6 (E_USR) was intended for? An absract of changes done to the system

Re: [yast-devel] use ALog::Item

2008-08-07 Thread Katarina Machalkova
With some work, both should be possible. What other C++ users aside from libstorage would we have? Remember ALog as a YCP module is just a prototype. Hm ... package selectors? :) But I can't think of possible use-case there, as it will be (or maybe already is) libzypp that takes care about

Re: [yast-devel] use ALog::Item

2008-08-06 Thread Michael Andres
On Wed, Aug 06, Martin Vidner wrote: Dear hackers, you are all admins of your own workstations, I believe. Have you ever wondered what YaST did to your system? Or even what *you* did to your system a week or a month ago? Please have a look at your y2log now: sudo less

Re: [yast-devel] use ALog::Item

2008-08-06 Thread Arvin Schnell
On Wed, Aug 06, 2008 at 05:41:49PM +0200, Martin Vidner wrote: On Wed, Aug 06, 2008 at 04:57:13PM +0200, Michael Andres wrote: On Wed, Aug 06, Martin Vidner wrote: ALog::Item(/etc/ntp.conf: added 'server ntp.example.org') ALog::Item(enabled /etd/init.d/ntp) ALog::Item(started

Re: [yast-devel] use ALog::Item

2008-08-06 Thread Michal Svec
On Wed, 6 Aug 2008, Martin Vidner wrote: On Wed, Aug 06, 2008 at 04:57:13PM +0200, Michael Andres wrote: On Wed, Aug 06, Martin Vidner wrote: ALog::Item(/etc/ntp.conf: added 'server ntp.example.org') ALog::Item(enabled /etd/init.d/ntp) ALog::Item(started /etd/init.d/ntp)