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



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
wpkg-users mailing list
wpkg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wpkg-users

Reply via email to