Hi Brian, Brian May wrote: > Brian May wrote: >> Ok, now I commented out this code in log(type, destination): >> >> //if ((type & 7) > 0 || isDebug()) { >> // if(isQuiet()) { >> // WshShell = WScript.CreateObject("WScript.Shell"); >> // WshShell.logEvent(type, description); >> // } else { >> // alert(description); >> // } >> //} >> >> Now it works! > > Ok, how do I go about debugging the problem with this code? There is nothing really to debug here. In case of quiet mode (/quiet flag set at command line or quiet flag set to true in config.xml) it is simply using the Windows logEvent method. In case that one fails it is a Windows issue. Try commenting just the logEvent method. If it fails, then the event log space might be full, try cleaning the logs. However it might also be that you just misconfigured WPKG. Which value did you assign to the logLevel (either command line switch or config.xml)? Please read the documentation in config.xml how the value is constructed. It is handled as a bitmask. So probably it's just wrongly set so you don't see all log output. Set it to "0xFF" for the moment. In your output from the original post I see _ONLY_ debug severity output. So you might have set logLevel to something like 8 or 16. The binary representation of 8 is 1000, therefore the bits for error, warning and information are not set - so it's not logging them. br, Rainer |