[wpkg-users] error log?
Tomasz Chmielewski
mangoo at wpkg.org
Fri Oct 26 14:39:49 CEST 2007
Matt Miller schrieb:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Is there away to have WPKG log only errors that occur?
> We've decided to try and get a better grasp on what's deployed and
> what's not and some error logs would really help.
>
> We've been using WPKG with the /quiet flag but I want to have it log
> errors to a central samba share, something like
>
> wpkg.js /synchronize /nonotify > \\path\to\share\%COMPUTERNAME%-wpkg.log
>
> But I don't really need a log unless there are errors. Any way to do this?
Not really.
The best you can do now is to log everything (... /debug >> \\path\...)
and parse it later.
Or look at Marco Gaiarin's suggestion.
That being said, I see there was some attempt at refactoring the logging
a bit in the "Zombie package handling" thread:
- Introduced a warning() method to create warning-level messages (used
to notify users about zombie removal in case uninstall fails)
Still, I have to admit I didn't look at it (will do during the weekend),
but perhaps that's not what you want anyway.
But what you want, is a good idea. To make it work, we would need to do
the following:
* rework info, debug functions
Really, they can be just one function, and should accept log level.
Different log levels would give you different information.
http://bugzilla.wpkg.org/show_bug.cgi?id=21 reminds it a bit, but only a
bit.
--
Tomasz Chmielewski
http://wpkg.org
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users
More information about the wpkg-users
mailing list